aboutsummaryrefslogtreecommitdiff
path: root/crates/whirl_api/src/lib.rs
diff options
context:
space:
mode:
authorFuwn <[email protected]>2021-07-05 15:11:11 -0700
committerFuwn <[email protected]>2021-07-05 15:11:11 -0700
commitb15618cec3d3a111ebfbf82772bbe1ba0826d0fc (patch)
tree1d559cd246d803590967c1f438217168b15f3743 /crates/whirl_api/src/lib.rs
parentfeat(whirl_server): implement a demo of the REGOBJID and APPRACTR commands (diff)
downloadwhirl-b15618cec3d3a111ebfbf82772bbe1ba0826d0fc.tar.xz
whirl-b15618cec3d3a111ebfbf82772bbe1ba0826d0fc.zip
feat(whirl_api): /api/v1/worlds/vip endpoint
An endpoint for checking if a given user has VIP status at the time of request. Example usage: https://api.whirlsplash.org/api/v1/worlds/vip?username=fuwn will return `false`.
Diffstat (limited to 'crates/whirl_api/src/lib.rs')
-rw-r--r--crates/whirl_api/src/lib.rs1
1 files changed, 1 insertions, 0 deletions
diff --git a/crates/whirl_api/src/lib.rs b/crates/whirl_api/src/lib.rs
index 3f09ce0..59de414 100644
--- a/crates/whirl_api/src/lib.rs
+++ b/crates/whirl_api/src/lib.rs
@@ -56,6 +56,7 @@ impl Api {
.wrap(actix_cors::Cors::default().allow_any_origin())
.service(resource("/").to(|| async { "Whirlsplash" }))
.service(resource("/api/v1/statistics").to(routes::stats::statistics))
+ .service(resource("/api/v1/worlds/vip").to(routes::worlds::vip::vip))
})
.bind(address)?
.run();