Create Project APIs.
This commit is contained in:
parent
d8094c4812
commit
8b32739e51
13 changed files with 297 additions and 7 deletions
|
|
@ -9,6 +9,7 @@ use hurl_core::input::Input;
|
|||
use tower_http::trace::TraceLayer;
|
||||
|
||||
async fn create_app() -> Router {
|
||||
tracing_subscriber::fmt::try_init();
|
||||
use backend::database::{DatabaseConfig, create_pool};
|
||||
use backend::services;
|
||||
|
||||
|
|
@ -29,6 +30,8 @@ async fn create_app() -> Router {
|
|||
Router::new()
|
||||
.route("/health", get(health))
|
||||
.nest("/api/tasks", services::create_task_router())
|
||||
.nest("/api/projects", services::create_project_router())
|
||||
.layer(TraceLayer::new_for_http())
|
||||
.with_state(pool)
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue