Register endpoint #16

Merged
phoenix merged 56 commits from register_endpoint-init into devel 2025-04-05 19:26:59 +00:00
2 changed files with 5 additions and 1 deletions
Showing only changes of commit af72d79110 - Show all commits

View File

@@ -37,7 +37,7 @@ pub mod response {
pub async fn register_user(
axum::Extension(pool): axum::Extension<sqlx::PgPool>,
Json(payload): Json<models::common::CreateUser>,
Json(payload): Json<request::Request>,
) -> (StatusCode, Json<response::Response>) {
let mut user = models::common::User {
id: uuid::Uuid::nil(),

View File

@@ -198,6 +198,10 @@ mod tests {
let payload = json!({
"username": &usr.username,
"password": &usr.password,
"email": "dev@null.com",
"phone": "1234567890",
"firstname": "Bob",
"lastname": "Smith",
});
let response = app