mirror of
https://github.com/modrinth/code.git
synced 2026-07-31 21:26:40 +00:00
fix(labrinth): fix routing config for /v3/content (#6649)
This commit is contained in:
@@ -28,10 +28,10 @@ const CONTENT_RESOLVE_CACHE_SCHEMA_VERSION: &str = "v1";
|
||||
const CONTENT_RESOLVE_CACHE_HEAT_WINDOW_SECONDS: i64 = 60 * 60 * 24;
|
||||
|
||||
pub fn config(cfg: &mut actix_web::web::ServiceConfig) {
|
||||
cfg.service(web::scope("/v3").service(resolve_content));
|
||||
cfg.service(resolve_content);
|
||||
}
|
||||
|
||||
/// Resolve content.
|
||||
/// Resolve content.
|
||||
#[utoipa::path(
|
||||
tag = "content",
|
||||
request_body = serde_json::Value,
|
||||
|
||||
@@ -69,9 +69,9 @@ pub fn config(cfg: &mut web::ServiceConfig) {
|
||||
.configure(users::config)
|
||||
.configure(version_file::config)
|
||||
.configure(versions::config)
|
||||
.configure(friends::config),
|
||||
.configure(friends::config)
|
||||
.configure(content::config),
|
||||
);
|
||||
cfg.configure(content::config);
|
||||
}
|
||||
|
||||
#[derive(utoipa::OpenApi)]
|
||||
|
||||
Reference in New Issue
Block a user