Implement notice endpoint

This commit is contained in:
Ethan O'Brien
2024-02-26 20:41:26 -06:00
parent 05bf6c011e
commit 0ec158b889
3 changed files with 22 additions and 0 deletions

17
src/router/notice.rs Normal file
View File

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