diff options
author | Toby Vincent <tobyv@tobyvin.dev> | 2024-08-02 18:32:11 -0500 |
---|---|---|
committer | Toby Vincent <tobyv@tobyvin.dev> | 2024-08-02 18:32:11 -0500 |
commit | 17ea17fc753df373ca9acee46f06d3cf31ca7084 (patch) | |
tree | 8aa646c75b2931316d417951da81e6f111c7a9ac /src/api/users.rs | |
parent | 82cc3b8054f4b126b422d946ea694d282a41cd78 (diff) |
wiptasks
Diffstat (limited to 'src/api/users.rs')
-rw-r--r-- | src/api/users.rs | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/src/api/users.rs b/src/api/users.rs index bfbc0d6..86007ca 100644 --- a/src/api/users.rs +++ b/src/api/users.rs @@ -4,7 +4,7 @@ use axum::{ extract::{Path, State}, http::header::LOCATION, response::{IntoResponse, IntoResponseParts}, - Json, + Json, Router, }; use axum_extra::routing::Resource; use serde::{Deserialize, Serialize}; @@ -13,14 +13,17 @@ use time::OffsetDateTime; use uuid::Uuid; use crate::{ + api::tasks::Task, auth::{credentials::Credential, AccessClaims}, state::AppState, }; use super::error::Error; -pub fn router() -> Resource<AppState> { - Resource::named("users").create(create).show(show) +pub fn router() -> Router<AppState> { + let resource = Resource::named("users").create(create).show(show); + + Router::from(resource) } #[derive(Debug, Clone, PartialEq, Eq, Serialize, Deserialize)] |