Skip to content
Permalink
Browse files
GET user
  • Loading branch information
marcusbuffett committed Oct 23, 2020
1 parent 4918c91 commit 3216cb1c1a70249dfec05496a75de02d31e7a30b
Showing 1 changed file with 1 addition and 1 deletion.
@@ -49,7 +49,7 @@ type EndpointResult<T> = Result<T, ServerError>;

#[get("/users/<username>")]
fn get_user(db: State<Database>, username: String) -> EndpointResult<Json<User>> {
todo!()
Ok(Json(db.users.get(username.as_bytes())??))
}

#[delete("/users/<username>")]

0 comments on commit 3216cb1

Please sign in to comment.