Created
June 7, 2022 07:22
-
-
Save ShaiYer/4a88f58eac37495f3d5fa1e5d5ce3c4c to your computer and use it in GitHub Desktop.
Flask serve Angular 2+ App
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@bp.route('/<path:path>') | |
def catch_all(path): | |
print('You want path: %s' % path) | |
return index_app() | |
def index_app(): | |
cur_path = '' | |
f = open(cur_path + "static/apps/todo/index.html", "r") | |
file_text = f.read() | |
f.close() | |
html = render_template_string(file_text) | |
return html |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment