fix
This commit is contained in:
parent
132b59d2f8
commit
cf2fbf5955
8
main.py
8
main.py
|
@ -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",
|
||||||
|
|
Loading…
Reference in New Issue