diff options
Diffstat (limited to 'src/routes/register.rs')
-rw-r--r-- | src/routes/register.rs | 15 |
1 files changed, 9 insertions, 6 deletions
diff --git a/src/routes/register.rs b/src/routes/register.rs index d2a570c..2181808 100644 --- a/src/routes/register.rs +++ b/src/routes/register.rs @@ -6,13 +6,16 @@ use argon2::{ }; use axum::{extract::State, http::StatusCode, response::IntoResponse, Json}; use axum_extra::routing::TypedPath; -use serde::Deserialize; +use serde::{Deserialize, Serialize}; -use crate::{ - model::{RegisterSchema, UserSchema}, - state::AppState, - Error, -}; +use crate::{model::UserSchema, state::AppState, Error}; + +#[derive(Debug, Clone, PartialEq, Eq, Serialize, Deserialize)] +pub struct RegisterSchema { + pub name: String, + pub email: String, + pub password: String, +} #[derive(Debug, Deserialize, TypedPath)] #[typed_path("/api/register")] |