rebuild file structur + simple sqlite db endpoint

This commit is contained in:
2025-09-04 22:32:53 +02:00
parent 3db51cc805
commit 3450c216c0
20 changed files with 748 additions and 49 deletions

17
src/rooms/routes.rs Normal file
View File

@@ -0,0 +1,17 @@
use axum::{
routing::{get, put,},
Router,
};
use crate::rooms::handler::*;
use crate::utils::db_pool::HotelPools;
// ROOTS
pub fn rooms_routes() -> Router<HotelPools> {
Router::new()
.route("/", get(hello_rooms) )
.route("/fakeUpdate/{room_id}", put(fake_room_update))
.route("/fake_db_update/{room_id}", put(fake_db_update))
}