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