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