Files
colota_backend/src/routes.rs
2026-01-29 16:42:39 +01:00

9 lines
371 B
Rust

use crate::handlers;
use actix_web::web;
pub fn config_routes(cfg: &mut web::ServiceConfig) {
cfg.service(web::resource("/api").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)));
}