Add redirect for /web
This commit is contained in:
parent
7820bcf053
commit
302c6d814d
1 changed files with 2 additions and 1 deletions
|
|
@ -1,7 +1,7 @@
|
||||||
use anyhow::Context;
|
use anyhow::Context;
|
||||||
use axum::body::Bytes;
|
use axum::body::Bytes;
|
||||||
use axum::extract::{Path, Query, State};
|
use axum::extract::{Path, Query, State};
|
||||||
use axum::response::IntoResponse;
|
use axum::response::{IntoResponse, Redirect};
|
||||||
use axum::routing::{get, post};
|
use axum::routing::{get, post};
|
||||||
use futures::future::BoxFuture;
|
use futures::future::BoxFuture;
|
||||||
use futures::{FutureExt, TryStreamExt};
|
use futures::{FutureExt, TryStreamExt};
|
||||||
|
|
@ -341,6 +341,7 @@ impl HttpApi {
|
||||||
);
|
);
|
||||||
|
|
||||||
app = app.nest("/web/", webui_router);
|
app = app.nest("/web/", webui_router);
|
||||||
|
app = app.route("/web", get(|| async { Redirect::permanent("/web/") }))
|
||||||
}
|
}
|
||||||
|
|
||||||
let cors_layer = {
|
let cors_layer = {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue