mirror of
https://github.com/modrinth/code.git
synced 2026-08-31 03:55:59 +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())
|
||||
.configure(updates::config),
|
||||
);
|
||||
cfg.service(
|
||||
web::scope("/hosting")
|
||||
.wrap(default_cors())
|
||||
.service(web::Redirect::to(ENV.ARCHON_URL.to_string()).permanent()),
|
||||
);
|
||||
cfg.service(
|
||||
web::scope("/analytics")
|
||||
.wrap(
|
||||
|
||||
Reference in New Issue
Block a user