Fixes leave on the server and reworked login flow.
This commit is contained in:
@@ -38,6 +38,7 @@ async fn main() -> std::io::Result<()> {
|
||||
.wrap(TracingLogger::default())
|
||||
.app_data(web::Data::new(pool.clone()))
|
||||
.service(login)
|
||||
.service(refresh)
|
||||
.service(register)
|
||||
.service(gamenights)
|
||||
.service(gamenight_post)
|
||||
@@ -45,6 +46,7 @@ async fn main() -> std::io::Result<()> {
|
||||
.service(get_user)
|
||||
.service(get_user_unauthenticated)
|
||||
.service(post_join_gamenight)
|
||||
.service(post_leave_gamenight)
|
||||
.service(get_get_participants)
|
||||
})
|
||||
.bind(("::1", 8080))?
|
||||
|
||||
Reference in New Issue
Block a user