Added auth endpoint placeholders.
This commit is contained in:
@@ -3,6 +3,8 @@ use axum::{http::StatusCode, routing::get};
|
||||
use crate::error::AppError;
|
||||
|
||||
pub mod accounts;
|
||||
pub mod auth_passkey;
|
||||
pub mod auth_token;
|
||||
pub mod dtos;
|
||||
pub mod extractors;
|
||||
pub mod scheduled_transactions;
|
||||
@@ -10,12 +12,16 @@ pub mod transactions;
|
||||
pub mod users;
|
||||
|
||||
pub fn create_router(pool: sqlx::PgPool) -> axum::Router {
|
||||
let auth_passkey = auth_passkey::create_router();
|
||||
let auth_token = auth_token::create_router();
|
||||
let accounts = accounts::create_router();
|
||||
let scheduled_transactions = scheduled_transactions::create_router();
|
||||
let transactions = transactions::create_router();
|
||||
let users = users::create_router();
|
||||
|
||||
let api = axum::Router::new()
|
||||
.nest("/auth/passkey", auth_passkey)
|
||||
.nest("/auth/token", auth_token)
|
||||
.nest("/accounts", accounts)
|
||||
.nest("/scheduled-transactions", scheduled_transactions)
|
||||
.nest("/transactions", transactions)
|
||||
|
||||
Reference in New Issue
Block a user