change host to xurl.pw

This commit is contained in:
2026-03-09 12:42:17 +03:00
parent a430e7f895
commit f6dd3d9ca1

View File

@@ -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>")]