working example with write and select

This commit is contained in:
2026-01-29 15:50:56 +01:00
parent 361bd7bc4a
commit 71b17a11bd
10 changed files with 150 additions and 99 deletions

8
src/routes.rs Normal file
View File

@@ -0,0 +1,8 @@
use crate::handlers;
use actix_web::web;
pub fn config_routes(cfg: &mut web::ServiceConfig) {
cfg.service(web::resource("/").route(web::get().to(handlers::index)))
.service(web::resource("/api/location").route(web::post().to(handlers::create_location)))
.service(web::resource("/api/locations").route(web::get().to(handlers::select_locations)));
}