portal, platform, and server fixes

This commit is contained in:
Timur Gordon
2025-06-30 17:01:40 +02:00
parent 1c96fa4087
commit a5b46bffb1
59 changed files with 9158 additions and 1057 deletions

View File

@@ -491,7 +491,7 @@ async fn main() -> anyhow::Result<()> {
let app = Router::new()
// API routes
.route("/api/health", get(health_check))
.route("/company/create-payment-intent", post(create_payment_intent))
.route("/api/company/create-payment-intent", post(create_payment_intent))
.route("/resident/create-payment-intent", post(create_resident_payment_intent))
.route("/company/payment-success", get(payment_success))
.route("/company/payment-failure", get(payment_failure))
@@ -516,7 +516,7 @@ async fn main() -> anyhow::Result<()> {
info!("Starting server on {}", addr);
info!("Health check: http://{}/api/health", addr);
info!("Payment endpoint: http://{}/company/create-payment-intent", addr);
info!("Payment endpoint: http://{}/api/company/create-payment-intent", addr);
// Start the server
let listener = tokio::net::TcpListener::bind(&addr).await?;