fix pr comment

This commit is contained in:
aecsocket
2026-07-30 05:33:30 +01:00
parent d9791fc94e
commit de6aa7e2e4
2 changed files with 3 additions and 8 deletions
@@ -12,12 +12,11 @@ pub fn config(cfg: &mut actix_web::web::ServiceConfig) {
cfg.service(analytics_events_get);
}
/// List analytics events.
/// List analytics events.
#[utoipa::path(
context_path = "/v3/analytics-event",
tag = "v3 analytics", responses((status = OK, body = Vec<AnalyticsEvent>))
)]
#[get("")]
#[get("/analytics-event")]
pub async fn analytics_events_get(
pool: web::Data<PgPool>,
redis: web::Data<RedisPool>,
+1 -5
View File
@@ -30,11 +30,6 @@ pub mod versions;
pub mod oauth_clients;
pub fn config(cfg: &mut web::ServiceConfig) {
cfg.service(
web::scope("/v3/analytics-event")
.wrap(default_cors())
.configure(analytics_event::config),
);
cfg.service(
web::scope("/v3/analytics")
.wrap(default_cors())
@@ -54,6 +49,7 @@ pub fn config(cfg: &mut web::ServiceConfig) {
cfg.service(
web::scope("/v3")
.wrap(default_cors())
.configure(analytics_event::config)
.configure(limits::config)
.configure(collections::config)
.configure(images::config)