File tree Expand file tree Collapse file tree 1 file changed +14
-0
lines changed
Expand file tree Collapse file tree 1 file changed +14
-0
lines changed Original file line number Diff line number Diff line change 2929)
3030from commonwealth .utils .logs import InterceptHandler , init_logger
3131from fastapi import FastAPI , HTTPException
32+ from fastapi .responses import HTMLResponse
3233from fastapi_versioning import VersionedFastAPI , version
3334from loguru import logger
3435from pydantic import BaseModel
@@ -646,6 +647,19 @@ async def periodic() -> None:
646647 enable_latest = True ,
647648)
648649
650+
651+ @app .get ("/" )
652+ async def root () -> HTMLResponse :
653+ html_content = """
654+ <html>
655+ <head>
656+ <title>Helper</title>
657+ </head>
658+ </html>
659+ """
660+ return HTMLResponse (content = html_content , status_code = 200 )
661+
662+
649663port_to_service_map : Dict [int , str ] = parse_nginx_file ("/home/pi/tools/nginx/nginx.conf" )
650664
651665if __name__ == "__main__" :
You can’t perform that action at this time.
0 commit comments