mirror of
https://github.com/Radiquum/AniX.git
synced 2025-05-02 10:59:40 +05:00
feat(deployment): allow deploy to vercel
This commit is contained in:
parent
f4e340b21d
commit
f3a15eb956
3 changed files with 23 additions and 0 deletions
|
@ -1,3 +1,5 @@
|
|||
import os
|
||||
|
||||
import uvicorn
|
||||
from fastapi import FastAPI
|
||||
from modules import proxy
|
||||
|
@ -38,6 +40,9 @@ TAGS = [
|
|||
|
||||
PREFIX = "/v1"
|
||||
|
||||
if os.getenv("API_PREFIX"):
|
||||
PREFIX = os.getenv("API_PREFIX")
|
||||
|
||||
app = FastAPI(
|
||||
openapi_tags=TAGS,
|
||||
title="AniX API",
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue