rebuild file structur + simple sqlite db endpoint
This commit is contained in:
17
src/rooms/routes.rs
Normal file
17
src/rooms/routes.rs
Normal 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))
|
||||
}
|
||||
Reference in New Issue
Block a user