Skip to content

Commit c85fbc2

Browse files
author
4c0d3r
committed
Revert "Use web_root for static too"
This reverts commit fe5bd7c.
1 parent 0314b3d commit c85fbc2

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

namer/web/server.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
from namer.types import NamerConfig
1515
from namer.web.routes import api, web
1616

17-
app = Flask(__name__, static_folder='public', template_folder='templates')
17+
app = Flask(__name__, static_url_path='/', static_folder='public', template_folder='templates')
1818
compress = Compress()
1919

2020

@@ -46,7 +46,6 @@ def __make_server(self):
4646

4747
def __register_blueprints(self):
4848
path = '/' if self.__config.web_root is None else self.__config.web_root
49-
app.static_url_path = path
5049

5150
blueprints = [
5251
web.get_routes(self.__config, self.__command_queue),

0 commit comments

Comments
 (0)