mirror of
https://git.ethanthesleepy.one/ethanaobrien/ew
synced 2026-07-12 08:42:20 +08:00
Replace repeated Mutex lock functions with a macro
This commit is contained in:
@@ -93,7 +93,7 @@ async fn api_req(req: HttpRequest, body: String) -> HttpResponse {
|
||||
"/api/event" => event::event(req, body),
|
||||
"/api/event/star_event" => event::star_event(req, body),
|
||||
"/api/event/set/member" => event::set_member(req, body),
|
||||
"/api/event/ranking" => event::ranking(req, body),
|
||||
"/api/event/ranking" => event::ranking(req, body).await,
|
||||
"/api/event_star_live/change_target_music" => event::change_target_music(req, body),
|
||||
"/api/event_star_live/start" => live::event_start(req, body),
|
||||
"/api/event_star_live/end" => event::event_end(req, body),
|
||||
@@ -135,7 +135,7 @@ async fn api_req(req: HttpRequest, body: String) -> HttpResponse {
|
||||
"/api/gift" => home::gift_get(req),
|
||||
"/api/purchase" => purchase::purchase(req),
|
||||
"/api/friend/ids" => friend::ids(req),
|
||||
"/api/live/clearRate" => clear_rate::clearrate(req),
|
||||
"/api/live/clearRate" => clear_rate::clearrate(req).await,
|
||||
"/api/mission" => mission::mission(req),
|
||||
"/api/home" => home::home(req),
|
||||
"/api/home/preset" => home::preset_get(req),
|
||||
|
||||
Reference in New Issue
Block a user