Created
June 8, 2022 06:04
-
-
Save twyle/754c33a77667f0fa2cf9292d64faaba1 to your computer and use it in GitHub Desktop.
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
# -*- coding: utf-8 -*- | |
"""This module contains the routes associated with the default Blueprint.""" | |
from flask import Blueprint, jsonify | |
default = Blueprint('default', __name__, template_folder='templates', static_folder='static') | |
@default.route('/') | |
def default_route(): | |
"""Confirm that the application is working.""" | |
return jsonify({'hello': 'from template api auto-deployed with GitHub actions and being tested!'}), 200 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment