Skip to content
GitLab
Explore
Sign in
Commits on Source (1)
Revert "path parameter refactoring"
· c64200c4
Marco De Donno
authored
Aug 03, 2019
This reverts commit
dbe2ba20
.
c64200c4
Hide whitespace changes
Inline
Side-by-side
module.py
View file @
c64200c4
...
...
@@ -172,20 +172,20 @@ def version():
################################################################################
# CDN serving
@app.route
(
baseurl
+
'
/cdn/<path:
sub
path>
'
)
def
send_cdn_files
(
sub
path
):
return
send_from_directory
(
'
cdn
'
,
sub
path
)
@app.route
(
baseurl
+
'
/cdn/<path:path>
'
)
def
send_cdn_files
(
path
):
return
send_from_directory
(
'
cdn
'
,
path
)
################################################################################
# App serving
@app.route
(
baseurl
+
'
/app/<path:
sub
path>
'
)
def
send_app_files
(
sub
path
):
return
send_from_directory
(
'
app
'
,
sub
path
)
@app.route
(
baseurl
+
'
/app/<path:path>
'
)
def
send_app_files
(
path
):
return
send_from_directory
(
'
app
'
,
path
)
@app.route
(
baseurl
+
'
/static/<path:
sub
path>
'
)
def
send_static_files
(
sub
path
):
return
send_from_directory
(
'
static
'
,
sub
path
)
@app.route
(
baseurl
+
'
/static/<path:path>
'
)
def
send_static_files
(
path
):
return
send_from_directory
(
'
static
'
,
path
)
################################################################################
# Sessions
...
...