From 17ea17fc753df373ca9acee46f06d3cf31ca7084 Mon Sep 17 00:00:00 2001 From: Toby Vincent Date: Fri, 2 Aug 2024 18:32:11 -0500 Subject: wip --- src/api/users.rs | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) (limited to 'src/api/users.rs') 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 { - Resource::named("users").create(create).show(show) +pub fn router() -> Router { + let resource = Resource::named("users").create(create).show(show); + + Router::from(resource) } #[derive(Debug, Clone, PartialEq, Eq, Serialize, Deserialize)] -- cgit v1.2.3-70-g09d2