Adds the post gamenight handler.

This commit is contained in:
2023-03-25 22:44:58 +01:00
parent 534e6867d8
commit 5216f55a14
6 changed files with 50 additions and 5 deletions

View File

@@ -5,6 +5,7 @@ use actix_web::HttpServer;
use actix_web::App;
use actix_web::web;
use diesel::PgConnection;
use request::gamenight;
use request::{login, register, gamenights};
use diesel::r2d2::ConnectionManager;
use diesel::r2d2::Pool;
@@ -29,6 +30,7 @@ async fn main() -> std::io::Result<()> {
.service(login)
.service(register)
.service(gamenights)
.service(gamenight)
})
.bind(("::1", 8080))?
.run()