Add user lookup.

This commit is contained in:
Paul Makles
2020-01-26 11:53:33 +00:00
parent 0021ada639
commit 7f0baa2a89
3 changed files with 34 additions and 4 deletions

View File

@@ -6,5 +6,5 @@ mod user;
pub fn mount(rocket: Rocket) -> Rocket {
rocket
.mount("/api/account", routes![ account::create, account::verify_email, account::resend_email, account::login ])
.mount("/api/users", routes![ user::me ])
.mount("/api/users", routes![ user::me, user::lookup ])
}