mirror of
https://git.ethanthesleepy.one/ethanaobrien/ew
synced 2026-08-26 15:02:18 +08:00
15 lines
285 B
Rust
15 lines
285 B
Rust
use jzon::object;
|
|
use actix_web::{web, Responder};
|
|
|
|
use crate::router::Api;
|
|
|
|
pub fn routes(cfg: &mut web::ServiceConfig) {
|
|
cfg.route("/location", web::get().to(location));
|
|
}
|
|
|
|
async fn location() -> impl Responder {
|
|
Api(Some(object!{
|
|
"master_location_ids": []
|
|
}))
|
|
}
|