Skip to content

Commit 57666e2

Browse files
author
Vasily Fotin
committed
Static directory
1 parent b8df5c8 commit 57666e2

File tree

3 files changed

+3
-2
lines changed

3 files changed

+3
-2
lines changed

app/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ def create_app():
88
"""
99

1010
# Create flask app with CORS enabled.
11-
app = Flask(__name__)
11+
app = Flask(__name__, static_url_path='/static', static_folder='static')
1212
CORS(app)
1313

1414
# Set app config from settings.

app/routes/formatted.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ def full():
4949

5050
outputJSON = jsonify(output)
5151

52-
f = open( 'data.json', 'w' )
52+
f = open( 'app/static/data.json', 'w' )
5353
f.write(str(output))
5454
f.close()
5555

app/static/data.json

Lines changed: 1 addition & 0 deletions
Large diffs are not rendered by default.

0 commit comments

Comments
 (0)