feat: initial commit
Axum/Postgres server with auth, migrations, and Docker setup.
This commit is contained in:
17
src/handlers/mod.rs
Normal file
17
src/handlers/mod.rs
Normal file
@@ -0,0 +1,17 @@
|
||||
use axum::http::StatusCode;
|
||||
|
||||
pub mod attachment;
|
||||
pub mod auth;
|
||||
pub mod auth_token;
|
||||
pub mod conversation;
|
||||
pub mod conversation_member;
|
||||
pub mod message;
|
||||
pub mod reaction;
|
||||
pub mod user;
|
||||
pub mod workspace;
|
||||
pub mod workspace_invitation;
|
||||
pub mod workspace_member;
|
||||
|
||||
pub(crate) fn db_err(e: sqlx::Error) -> (StatusCode, String) {
|
||||
(StatusCode::INTERNAL_SERVER_ERROR, e.to_string())
|
||||
}
|
||||
Reference in New Issue
Block a user