mirror of
https://gitlab.archlinux.org/archlinux/aurweb.git
synced 2025-02-03 10:43:03 +01:00
housekeep: copy static files
we copy static files used by PHP and Python versions into /static preparation work for the removal of the PHP version Signed-off-by: moson-mo <mo-son@mailbox.org>
This commit is contained in:
parent
1325c71712
commit
97d0eac303
27 changed files with 2874 additions and 5 deletions
|
@ -79,11 +79,7 @@ async def app_startup():
|
|||
"endpoint is disabled."
|
||||
)
|
||||
|
||||
app.mount("/static/css", StaticFiles(directory="web/html/css"), name="static_css")
|
||||
app.mount("/static/js", StaticFiles(directory="web/html/js"), name="static_js")
|
||||
app.mount(
|
||||
"/static/images", StaticFiles(directory="web/html/images"), name="static_images"
|
||||
)
|
||||
app.mount("/static", StaticFiles(directory="static"), name="static_files")
|
||||
|
||||
# Add application routes.
|
||||
def add_router(module):
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue