Make static path under /web

This commit is contained in:
Mart van Santen 2022-03-22 17:35:15 +08:00
parent d09d9d77bd
commit 24890b3722
2 changed files with 8 additions and 8 deletions

2
app.py
View file

@ -33,7 +33,7 @@ from helpers import (
from config import * from config import *
import logging import logging
app = Flask(__name__) app = Flask(__name__, static_url_path = '/web/static')
cors = CORS(app) cors = CORS(app)

View file

@ -1,11 +1,11 @@
<!doctype html> <!doctype html>
<html> <html>
<link rel="stylesheet" href="/static/css/bootstrap.min.css"> <link rel="stylesheet" href="static/css/bootstrap.min.css">
<link rel="stylesheet" href="/static/style.css"> <link rel="stylesheet" href="static/style.css">
<script src="/static/js/bootstrap.bundle.min.js"></script> <script src="static/js/bootstrap.bundle.min.js"></script>
<script src="/static/js/jquery-3.6.0.min.js"></script> <script src="static/js/jquery-3.6.0.min.js"></script>
<script src="/static/js/js.cookie.min.js"></script> <script src="static/js/js.cookie.min.js"></script>
<script src="/static/base.js"></script> <script src="static/base.js"></script>
<title>Stackspin Account</title> <title>Stackspin Account</title>
</html> </html>
@ -32,7 +32,7 @@
style='display:none'>Your request is expired. Please resubmit your request faster.</div> style='display:none'>Your request is expired. Please resubmit your request faster.</div>
<img src='/static/logo.svg'/><br/><br/> <img src='static/logo.svg'/><br/><br/>
{% block content %}{% endblock %} {% block content %}{% endblock %}