aboutsummaryrefslogtreecommitdiff
path: root/planetwars-server/src/lib.rs
diff options
context:
space:
mode:
authorIlion Beyst <ilion.beyst@gmail.com>2022-07-24 15:15:09 +0200
committerIlion Beyst <ilion.beyst@gmail.com>2022-07-24 15:15:42 +0200
commit33664eff2c93136658b7f863c95e1bfda91141ee (patch)
treeacda060d878b557e58db042a3bb30ff4212c17b1 /planetwars-server/src/lib.rs
parent4a582e8079178a7ac11f2a492e7988fcdaa210cd (diff)
downloadplanetwars.dev-33664eff2c93136658b7f863c95e1bfda91141ee.tar.xz
planetwars.dev-33664eff2c93136658b7f863c95e1bfda91141ee.zip
basic user profile pages
Diffstat (limited to 'planetwars-server/src/lib.rs')
-rw-r--r--planetwars-server/src/lib.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/planetwars-server/src/lib.rs b/planetwars-server/src/lib.rs
index 050048c..ccf7cfc 100644
--- a/planetwars-server/src/lib.rs
+++ b/planetwars-server/src/lib.rs
@@ -119,11 +119,11 @@ pub fn api() -> Router {
.route("/register", post(routes::users::register))
.route("/login", post(routes::users::login))
.route("/users/me", get(routes::users::current_user))
+ .route("/users/:user/bots", get(routes::bots::get_user_bots))
.route(
"/bots",
get(routes::bots::list_bots).post(routes::bots::create_bot),
)
- .route("/bots/my_bots", get(routes::bots::get_my_bots))
.route("/bots/:bot_id", get(routes::bots::get_bot))
.route(
"/bots/:bot_id/upload",