Implement /api/serial_code/events

This commit is contained in:
Ethan O'Brien
2024-04-08 15:34:19 -05:00
parent 9dd6572ed3
commit 299e60e4d5
3 changed files with 21 additions and 0 deletions

16
src/router/serial_code.rs Normal file
View File

@ -0,0 +1,16 @@
use json;
use json::object;
use crate::router::global;
use actix_web::{HttpResponse, HttpRequest};
pub fn events(_req: HttpRequest) -> HttpResponse {
let resp = object!{
"code": 0,
"server_time": global::timestamp(),
"data": {
"serial_code_list": []
}
};
global::send(resp)
}