Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in
Toggle navigation
V
vidai
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
SexHackMe
vidai
Commits
e3fad9df
Commit
e3fad9df
authored
Oct 08, 2025
by
Stefy Lanza (nextime / spora )
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix static file serving by setting static_folder and removing custom route
parent
5c1c889b
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
6 deletions
+1
-6
web.py
vidai/web.py
+1
-6
No files found.
vidai/web.py
View file @
e3fad9df
...
@@ -34,7 +34,7 @@ from .api import api_bp
...
@@ -34,7 +34,7 @@ from .api import api_bp
from
.admin
import
admin_bp
from
.admin
import
admin_bp
from
.utils
import
get_current_user_session
,
login_required
,
admin_required
from
.utils
import
get_current_user_session
,
login_required
,
admin_required
app
=
Flask
(
__name__
,
template_folder
=
'../templates'
)
app
=
Flask
(
__name__
,
template_folder
=
'../templates'
,
static_folder
=
'../static'
)
app
.
secret_key
=
os
.
environ
.
get
(
'FLASK_SECRET_KEY'
,
'dev-secret-key-change-in-production'
)
app
.
secret_key
=
os
.
environ
.
get
(
'FLASK_SECRET_KEY'
,
'dev-secret-key-change-in-production'
)
os
.
makedirs
(
'../static'
,
exist_ok
=
True
)
os
.
makedirs
(
'../static'
,
exist_ok
=
True
)
...
@@ -1280,11 +1280,6 @@ def admin_delete_user(user_id):
...
@@ -1280,11 +1280,6 @@ def admin_delete_user(user_id):
@
app
.
route
(
'/static/<path:filename>'
)
def
serve_static
(
filename
):
return
send_from_directory
(
'../static'
,
filename
)
@
app
.
route
(
'/image.jpg'
)
@
app
.
route
(
'/image.jpg'
)
def
serve_logo
():
def
serve_logo
():
return
send_from_directory
(
'..'
,
'image.jpg'
)
return
send_from_directory
(
'..'
,
'image.jpg'
)
...
...
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