This commit is contained in:
s.mostryukov 2024-10-01 14:37:29 +03:00
parent 132b59d2f8
commit cf2fbf5955
1 changed files with 8 additions and 0 deletions

View File

@ -2,6 +2,8 @@ import logging
from config import settings from config import settings
from scripts.сheck_available_ports import start_check from scripts.сheck_available_ports import start_check
import uvicorn import uvicorn
from fastapi import FastAPI
from fastapi.responses import ORJSONResponse
input_text = """ input_text = """
@ -21,6 +23,12 @@ Error;1001-12:00:17;Информация о 46.243.234.23:13081/tcp есть в
Info;1001-12:00:17;Script finished Info;1001-12:00:17;Script finished
""" """
main_app = FastAPI(
default_response_class=ORJSONResponse,
docs_url=None,
)
if __name__ == "__main__": if __name__ == "__main__":
uvicorn.run( uvicorn.run(
"main:main_app", "main:main_app",