This repository was archived by the owner on Apr 4, 2024. It is now read-only.
This repository was archived by the owner on Apr 4, 2024. It is now read-only.
sockets listenets on other file/directory #26
Open
Description
Hey, how can i write my sockets on other folder/file and to tell my main.py to execute them?
my main file:
from fastapi import FastAPI
from starlette.middleware.cors import CORSMiddleware
def get_application():
app = FastAPI(title="Evil Islands", version="1.0.0", redoc_url=None)
app.add_middleware(
CORSMiddleware,
allow_origins=["http://localhost:8080"],
allow_credentials=True,
allow_methods=["*"],
allow_headers=["*"],
)
return app
app = get_application()
I want to place @app.sio listeners to a directory - lets say ../sockets
thank you.
Metadata
Metadata
Assignees
Labels
No labels