portal, platform, and server fixes
This commit is contained in:
@@ -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?;
|
||||
|
||||
Reference in New Issue
Block a user