Change x-authlib-injector-api-location value
This commit is contained in:
parent
5f2905faab
commit
a2a90519e1
@ -46,7 +46,7 @@ pub async fn start(db: &Database) -> anyhow::Result<()> {
|
|||||||
// Index
|
// Index
|
||||||
app.at("/").get(|req: Request<Database>| async move {
|
app.at("/").get(|req: Request<Database>| async move {
|
||||||
let res = Response::builder(200)
|
let res = Response::builder(200)
|
||||||
.header("x-authlib-injector-api-location", format!("{}/authlib/", req.state().config.external_base_url))
|
.header("x-authlib-injector-api-location", format!("/authlib/"))
|
||||||
.build();
|
.build();
|
||||||
|
|
||||||
Ok(res)
|
Ok(res)
|
||||||
@ -59,7 +59,7 @@ pub async fn start(db: &Database) -> anyhow::Result<()> {
|
|||||||
app.at("/authlib/").nest(authlib::nest(db.to_owned()));
|
app.at("/authlib/").nest(authlib::nest(db.to_owned()));
|
||||||
|
|
||||||
app.at("/").nest(aliases::nest(db.to_owned()));
|
app.at("/").nest(aliases::nest(db.to_owned()));
|
||||||
|
|
||||||
|
|
||||||
// Listen
|
// Listen
|
||||||
app.listen(format!("{}:{}", &db.config.address, &db.config.port)).await?;
|
app.listen(format!("{}:{}", &db.config.address, &db.config.port)).await?;
|
||||||
|
Loading…
Reference in New Issue
Block a user