ae970b2a32
Replace the existing Node.js API server with a Python Flask application, implementing robust AI-driven content filtering based on international human rights law and enhancing security measures. Replit-Commit-Author: Agent Replit-Commit-Session-Id: 923ae0e3-a363-4db8-b04a-e8baca2a1330 Replit-Commit-Checkpoint-Type: full_checkpoint Replit-Commit-Event-Id: 30f4e946-427f-4b27-989d-531b9116d12f Replit-Commit-Screenshot-Url: https://storage.googleapis.com/screenshot-production-us-central1/8af7d2ec-2cc3-4ece-8af3-9f071488d072/923ae0e3-a363-4db8-b04a-e8baca2a1330/AWHAa3Z Replit-Helium-Checkpoint-Created: true
28 lines
571 B
TOML
28 lines
571 B
TOML
kind = "api"
|
|
previewPath = "/api"
|
|
title = "API Server (Flask)"
|
|
version = "1.0.0"
|
|
id = "3B4_FFSkEVBkAeYMFRJ2e"
|
|
|
|
[[services]]
|
|
localPort = 8080
|
|
name = "API Server"
|
|
paths = ["/api"]
|
|
|
|
[services.development]
|
|
run = "PORT=8080 sh /home/runner/workspace/artifacts/flask-api/start.sh"
|
|
|
|
[services.production]
|
|
|
|
[services.production.build]
|
|
args = ["echo", "no build step for Flask"]
|
|
|
|
[services.production.run]
|
|
args = ["sh", "/home/runner/workspace/artifacts/flask-api/start.sh"]
|
|
|
|
[services.production.run.env]
|
|
PORT = "8080"
|
|
|
|
[services.production.health.startup]
|
|
path = "/api/healthz"
|