mirror of
https://github.com/modrinth/code.git
synced 2026-09-04 05:48:57 +00:00
feat: redirect /hosting to archon
This commit is contained in:
@@ -34,6 +34,11 @@ 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