user restricted to own objects

This commit is contained in:
Per Stark
2024-12-15 22:52:34 +01:00
parent 646792291c
commit cf6078eceb
18 changed files with 109 additions and 28 deletions

View File

@@ -69,6 +69,8 @@ async fn main() -> Result<(), Box<dyn std::error::Error>> {
)
.await?;
app_state.surreal_db_client.build_indexes().await?;
// Create Axum router
let app = Router::new()
.nest("/api/v1", api_routes_v1(&app_state))