- fix: issue where login failed to return the user if their role was null

- add: register route for api-service
- update: spawn a thread for the rest api in the api service
This commit is contained in:
2024-12-17 04:06:56 -05:00
parent 52455d6ffc
commit c67cdd5b2a
8 changed files with 74 additions and 23 deletions

View File

@@ -65,7 +65,7 @@ async fn main() -> Result<(), Box<dyn std::error::Error>> {
// Start the Axum REST API
info!("Starting REST API on {}:{}", addr, port);
axum_gateway::serve_rest_api(grpc_client).await?;
tokio::spawn(axum_gateway::serve_rest_api(grpc_client));
select! {
_ = signal::ctrl_c() => {},