feat: Move index to /_continuwuity/
This commit is contained in:
parent
9b4c483b6d
commit
43aa172829
1 changed files with 6 additions and 2 deletions
|
|
@ -2,13 +2,17 @@ use askama::Template;
|
|||
use axum::{
|
||||
Router,
|
||||
extract::State,
|
||||
response::{Html, IntoResponse},
|
||||
response::{Html, IntoResponse, Redirect},
|
||||
routing::get,
|
||||
};
|
||||
|
||||
use crate::WebError;
|
||||
|
||||
pub(crate) fn build() -> Router<crate::State> { Router::new().route("/", get(index_handler)) }
|
||||
pub(crate) fn build() -> Router<crate::State> {
|
||||
Router::new()
|
||||
.route("/", get(async || Redirect::permanent("/_continuwuity/")))
|
||||
.route("/_continuwuity/", get(index_handler))
|
||||
}
|
||||
|
||||
async fn index_handler(
|
||||
State(services): State<crate::State>,
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue