Skip to content

Instantly share code, notes, and snippets.

@twyle
Created June 1, 2022 06:11
Show Gist options
  • Save twyle/6154795cbf85f299e4f0b7cb0d1fd2e3 to your computer and use it in GitHub Desktop.
Save twyle/6154795cbf85f299e4f0b7cb0d1fd2e3 to your computer and use it in GitHub Desktop.
# -*- 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'}), 200
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment