change host to xurl.pw
This commit is contained in:
@@ -17,7 +17,7 @@ mod db;
|
|||||||
mod linkgen;
|
mod linkgen;
|
||||||
|
|
||||||
const DEFAULT_LINK_LENGTH: u32 = 6;
|
const DEFAULT_LINK_LENGTH: u32 = 6;
|
||||||
const LINK_PREFIX: &str = "https://slavasil.ru/";
|
const LINK_PREFIX: &str = "https://xurl.pw/";
|
||||||
|
|
||||||
pub struct GlobalState {
|
pub struct GlobalState {
|
||||||
db_client: Client,
|
db_client: Client,
|
||||||
@@ -67,12 +67,14 @@ async fn main() {
|
|||||||
}
|
}
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
rocket::build()
|
rocket::build()
|
||||||
.mount("/", routes![create, go_to_link])
|
.mount("/", routes![create, go_to_link])
|
||||||
.manage(state_mutex.clone())
|
.manage(state_mutex.clone())
|
||||||
.configure(config)
|
.configure(config)
|
||||||
.launch()
|
.launch()
|
||||||
.await.unwrap();
|
.await
|
||||||
|
.unwrap();
|
||||||
}
|
}
|
||||||
|
|
||||||
#[get("/create?<url>&<secret>&<length>&<link>&<ttl>")]
|
#[get("/create?<url>&<secret>&<length>&<link>&<ttl>")]
|
||||||
|
|||||||
Reference in New Issue
Block a user