I hate this
This commit is contained in:
parent
3007d9263a
commit
afdc3f890b
10 changed files with 22 additions and 14 deletions
16
main.py
16
main.py
|
|
@ -4,11 +4,13 @@ from typing import Annotated
|
|||
from fastapi import FastAPI, Header
|
||||
from fastapi.responses import StreamingResponse
|
||||
|
||||
from .classes import ProcessStatus
|
||||
from .controllers import Controllers
|
||||
from .models import Models
|
||||
from .responses import Responses
|
||||
from .util import check_password, stop_server
|
||||
from classes import ProcessStatus
|
||||
from controllers import Controllers
|
||||
from models import Models
|
||||
from responses import Responses
|
||||
from util import check_password, stop_server
|
||||
|
||||
import uvicorn
|
||||
|
||||
app = FastAPI()
|
||||
|
||||
|
|
@ -120,3 +122,7 @@ async def logs_tail(
|
|||
) -> StreamingResponse:
|
||||
check_password(authorization)
|
||||
return StreamingResponse(Controllers.logs.tail(data.back))
|
||||
|
||||
|
||||
if __name__ == "__main__":
|
||||
uvicorn.run("main:app", host="0.0.0.0", port=42101)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue