#i may be stupid

main
znpra 1 year ago
parent 7abad0b803
commit c1e02b04c6

@ -23,8 +23,8 @@ async fn main() {
sqlx::migrate!("./migrations").run(&pool).await.unwrap(); sqlx::migrate!("./migrations").run(&pool).await.unwrap();
let app = Router::new() let app = Router::new()
.route("/api/the_third_can/hello", get(|| async { "hello world!" })) .route("/api/thethirdcan/hello", get(|| async { "hello world!" }))
.route("/api/the_third_can/pronouns/:user", get(user_pronouns)) .route("/api/thethirdcan/pronouns/:user", get(user_pronouns))
.with_state(pool); .with_state(pool);
axum::Server::bind(&SocketAddr::new(IpAddr::from([0;4]), port)) axum::Server::bind(&SocketAddr::new(IpAddr::from([0;4]), port))

Loading…
Cancel
Save