aboutsummaryrefslogtreecommitdiff
path: root/crates/whirl_api/src/lib.rs
diff options
context:
space:
mode:
authorFuwn <[email protected]>2021-07-05 15:19:50 -0700
committerFuwn <[email protected]>2021-07-05 15:19:50 -0700
commit192b702cc5efab5eea0ebde8ef9fc25c83372dc3 (patch)
tree7e985584aa5b15045a41759afe9357eb3b272795 /crates/whirl_api/src/lib.rs
parentfeat(whirl_api): /api/v1/worlds/vip endpoint (diff)
downloadwhirl-192b702cc5efab5eea0ebde8ef9fc25c83372dc3.tar.xz
whirl-192b702cc5efab5eea0ebde8ef9fc25c83372dc3.zip
feat(whirl_api): /api/v1/worlds/info endpoint
An endpoint for grabbing user profile information. Example usage: https://api.whirlsplash.org/api/v1/worlds/info?username=fuwn will return *a lot of information*.
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 59de414..a72df55 100644
--- a/crates/whirl_api/src/lib.rs
+++ b/crates/whirl_api/src/lib.rs
@@ -57,6 +57,7 @@ impl Api {
.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))
+ .service(resource("/api/v1/worlds/info").to(routes::worlds::info::info))
})
.bind(address)?
.run();