Autogenerate only the models of the API for the backend-server

This commit is contained in:
2025-05-30 22:26:18 +02:00
parent 597a960bf1
commit 6950ac62e8
9 changed files with 95 additions and 289 deletions

View File

@@ -1,3 +1,5 @@
#[allow(unused_imports)]
pub mod models;
pub mod request;
use actix_cors::Cors;
@@ -6,7 +8,7 @@ use actix_web::HttpServer;
use actix_web::App;
use actix_web::http;
use actix_web::web;
use request::{login, register, gamenights, gamenight_post, gamenight_get};
use request::{*, login, register, gamenights};
use tracing_actix_web::TracingLogger;
use gamenight_database::*;
@@ -40,6 +42,8 @@ async fn main() -> std::io::Result<()> {
.service(gamenights)
.service(gamenight_post)
.service(gamenight_get)
.service(get_user)
.service(get_user_unauthenticated)
})
.bind(("::1", 8080))?
.run()