mirror of
https://git.ethanthesleepy.one/ethanaobrien/ew
synced 2026-10-12 01:24:27 +08:00
Implement /api/serial_code/events
This commit is contained in:
@@ -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)
|
||||
}
|
||||
Reference in New Issue
Block a user