Spaces:
Paused
Paused
Kastg
commited on
Update app.py
Browse files
app.py
CHANGED
|
@@ -9,17 +9,17 @@ app = Flask(__name__)
|
|
| 9 |
# Define the path to static files
|
| 10 |
static_dir = os.path.join(os.path.dirname(os.path.abspath(__file__)))
|
| 11 |
|
| 12 |
-
@app.route('/css')
|
| 13 |
-
def css():
|
| 14 |
-
return send_from_directory(os.path.join(static_dir, 'css'))
|
| 15 |
|
| 16 |
-
@app.route('/js')
|
| 17 |
-
def js():
|
| 18 |
-
return send_from_directory(os.path.join(static_dir, 'js'))
|
| 19 |
|
| 20 |
-
@app.route('/img')
|
| 21 |
-
def img():
|
| 22 |
-
return send_from_directory(os.path.join(static_dir, 'img'))
|
| 23 |
|
| 24 |
@app.route('/')
|
| 25 |
def index():
|
|
|
|
| 9 |
# Define the path to static files
|
| 10 |
static_dir = os.path.join(os.path.dirname(os.path.abspath(__file__)))
|
| 11 |
|
| 12 |
+
@app.route('/css/<path:filename>')
|
| 13 |
+
def css(filename):
|
| 14 |
+
return send_from_directory(os.path.join(static_dir, 'css'), filename)
|
| 15 |
|
| 16 |
+
@app.route('/js/<path:filename>')
|
| 17 |
+
def js(filename):
|
| 18 |
+
return send_from_directory(os.path.join(static_dir, 'js'), filename)
|
| 19 |
|
| 20 |
+
@app.route('/img/<path:filename>')
|
| 21 |
+
def img(filename):
|
| 22 |
+
return send_from_directory(os.path.join(static_dir, 'img'), filename)
|
| 23 |
|
| 24 |
@app.route('/')
|
| 25 |
def index():
|