Create Project APIs.
Some checks failed
Check / Backend (pull_request) Failing after 2m29s
Check / Frontend (pull_request) Successful in 1m55s

This commit is contained in:
Drew 2025-10-22 22:20:14 -07:00
parent d8094c4812
commit d4b8302306
9 changed files with 250 additions and 6 deletions

View file

@ -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)
}