Spaces:
Running
Running
Kastg
commited on
Update app.py
Browse files
app.py
CHANGED
@@ -9,6 +9,18 @@ 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('/')
|
13 |
def index():
|
14 |
return send_from_directory(static_dir, 'index.html')
|
|
|
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():
|
26 |
return send_from_directory(static_dir, 'index.html')
|