Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
xuwx1
LightX2V
Commits
44e215f3
Unverified
Commit
44e215f3
authored
Nov 13, 2025
by
yihuiwen
Committed by
GitHub
Nov 13, 2025
Browse files
fix sitemap.xml router (#472)
Co-authored-by:
yihuiwen
<
yihuiwen@sensetime.com
>
parent
d8558a0c
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
0 deletions
+6
-0
lightx2v/deploy/server/__main__.py
lightx2v/deploy/server/__main__.py
+6
-0
No files found.
lightx2v/deploy/server/__main__.py
View file @
44e215f3
...
@@ -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
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment