mirror of
https://github.com/UrloMythus/UnHided.git
synced 2026-04-11 03:40:54 +00:00
Add files via upload
This commit is contained in:
18
run.py
Normal file
18
run.py
Normal file
@@ -0,0 +1,18 @@
|
||||
from fastapi import FastAPI
|
||||
from mediaflow_proxy.main import app as mediaflow_app # Import mediaflow app
|
||||
import httpx
|
||||
import re
|
||||
import string
|
||||
|
||||
# Initialize the main FastAPI application
|
||||
main_app = FastAPI()
|
||||
|
||||
# Manually add only non-static routes from mediaflow_app
|
||||
for route in mediaflow_app.routes:
|
||||
if route.path != "/": # Exclude the static file path
|
||||
main_app.router.routes.append(route)
|
||||
|
||||
# Run the main app
|
||||
if __name__ == "__main__":
|
||||
import uvicorn
|
||||
uvicorn.run(main_app, host="0.0.0.0", port=8080)
|
||||
Reference in New Issue
Block a user