mirror of
https://github.com/modrinth/code.git
synced 2026-09-02 04:56:52 +00:00
refactor: remove archon redirect
This commit is contained in:
@@ -447,14 +447,14 @@ impl From<DBNotification> for Notification {
|
|||||||
name: "Accept".to_string(),
|
name: "Accept".to_string(),
|
||||||
action_route: (
|
action_route: (
|
||||||
"POST".to_string(),
|
"POST".to_string(),
|
||||||
format!("hosting/servers/{server_id}/invite/accept"),
|
format!(""),
|
||||||
),
|
),
|
||||||
},
|
},
|
||||||
NotificationAction {
|
NotificationAction {
|
||||||
name: "Deny".to_string(),
|
name: "Deny".to_string(),
|
||||||
action_route: (
|
action_route: (
|
||||||
"POST".to_string(),
|
"POST".to_string(),
|
||||||
format!("hosting/servers/{server_id}/invite/deny"),
|
format!(""),
|
||||||
),
|
),
|
||||||
},
|
},
|
||||||
],
|
],
|
||||||
|
|||||||
@@ -34,11 +34,6 @@ pub fn root_config(cfg: &mut web::ServiceConfig) {
|
|||||||
.wrap(default_cors())
|
.wrap(default_cors())
|
||||||
.configure(updates::config),
|
.configure(updates::config),
|
||||||
);
|
);
|
||||||
cfg.service(
|
|
||||||
web::scope("/hosting")
|
|
||||||
.wrap(default_cors())
|
|
||||||
.service(web::Redirect::to(ENV.ARCHON_URL.to_string()).permanent()),
|
|
||||||
);
|
|
||||||
cfg.service(
|
cfg.service(
|
||||||
web::scope("/analytics")
|
web::scope("/analytics")
|
||||||
.wrap(
|
.wrap(
|
||||||
|
|||||||
Reference in New Issue
Block a user