Skip to content

Commit 522459a

Browse files
committed
fix: http_server minor bug
1 parent 69f05b5 commit 522459a

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/http_server.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ pub async fn run_server(config: Config, db: SqlitePool) {
2727
};
2828

2929
let app = Router::new()
30-
.route("/invite/:id", get(handle_invite))
30+
.route("/invite/{id}", get(handle_invite))
3131
.layer(CorsLayer::permissive())
3232
.with_state(app_state);
3333

src/main.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,8 @@ mod migrations;
1010
mod slash_commands;
1111
mod utils;
1212

13-
use utils::config::Config;
1413
use dotenv::dotenv;
14+
use utils::config::Config;
1515

1616
type Error = Box<dyn std::error::Error + Send + Sync>;
1717
type Context<'a> = poise::Context<'a, Data, Error>;

0 commit comments

Comments
 (0)