1 line
1.7 KiB
JSON
1 line
1.7 KiB
JSON
{"repo": "blackeagle686/ash-web", "files": {"app.py": {"131fe46b629a2f5df85f7f2ef08aa9aa7258afea": {"t": 1785604707.6560702, "n": 1027, "h": "fe56ae7ef047fb3b", "c": "\"\"\"\nAshborn Landing Page — FastAPI backend.\nServes the static site and provides a download endpoint.\n\"\"\"\n\nfrom pathlib import Path\nfrom fastapi import FastAPI\nfrom fastapi.staticfiles import StaticFiles\nfrom fastapi.middleware.cors import CORSMiddleware\n\nfrom backend.pages import router as pages_router\nfrom backend.api.auth import router as auth_router\nfrom backend.api.system import router as system_router\n\nSTATIC_DIR = Path(__file__).parent / \"static\"\n\napp = FastAPI(title=\"Ashborn Landing Page\", version=\"1.0.0\")\n\napp.add_middleware(\n CORSMiddleware,\n allow_origins=[\"*\"],\n allow_methods=[\"*\"],\n allow_headers=[\"*\"],\n)\n\n# Include modular routers\napp.include_router(pages_router)\napp.include_router(auth_router)\napp.include_router(system_router)\n\n# Mount static assets AFTER routes so they don't shadow /download etc.\napp.mount(\"/static\", StaticFiles(directory=str(STATIC_DIR)), name=\"static\")\n\nif __name__ == \"__main__\":\n import uvicorn\n uvicorn.run(\"app:app\", host=\"127.0.0.1\", port=3000, reload=True)\n"}}, "vercel.json": {"73ec031f113c03d0855040c077ee60a975fa6c85": {"t": 1785604709.6858914, "n": 286, "h": "603cdc8c2b2ebed9", "c": "{\n \"version\": 2,\n \"builds\": [\n {\n \"src\": \"app.py\",\n \"use\": \"@vercel/python\"\n },\n {\n \"src\": \"static/**\",\n \"use\": \"@vercel/static\"\n }\n ],\n \"routes\": [\n { \"src\": \"/static/(.*)\", \"dest\": \"/static/$1\" },\n { \"src\": \"/(.*)\", \"dest\": \"/app.py\" }\n ]\n}\n"}}}} |