Unverified Commit 44e215f3 authored by yihuiwen's avatar yihuiwen Committed by GitHub
Browse files

fix sitemap.xml router (#472)


Co-authored-by: default avataryihuiwen <yihuiwen@sensetime.com>
parent d8558a0c
...@@ -160,6 +160,12 @@ async def root(): ...@@ -160,6 +160,12 @@ async def root():
return HTMLResponse(content=f.read()) return HTMLResponse(content=f.read())
@app.get("/sitemap.xml", response_class=HTMLResponse)
async def sitemap():
with open(os.path.join(os.path.dirname(__file__), "frontend", "dist", "sitemap.xml"), "r", encoding="utf-8") as f:
return HTMLResponse(content=f.read())
@app.get("/auth/login/github") @app.get("/auth/login/github")
async def github_auth(request: Request): async def github_auth(request: Request):
client_id = auth_manager.github_client_id client_id = auth_manager.github_client_id
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment