Move response encryption handler to a response handler

This commit is contained in:
Ethan O'Brien
2026-07-24 14:40:12 -05:00
parent 0b0b50de36
commit 6eec06e164
24 changed files with 223 additions and 203 deletions

View File

@@ -1,14 +1,14 @@
use jzon::object;
use actix_web::{web, HttpRequest, Responder};
use actix_web::{web, Responder};
use crate::router::global;
use crate::router::Api;
pub fn routes(cfg: &mut web::ServiceConfig) {
cfg.route("/location", web::get().to(location));
}
async fn location(req: HttpRequest) -> impl Responder {
global::api(&req, Some(object!{
async fn location() -> impl Responder {
Api(Some(object!{
"master_location_ids": []
}))
}