Skip to content

Instantly share code, notes, and snippets.

@JohnnyFang
Created December 29, 2018 00:49
Show Gist options
  • Save JohnnyFang/4c4b49193b1ec1e22f5ca309f6d86ce4 to your computer and use it in GitHub Desktop.
Save JohnnyFang/4c4b49193b1ec1e22f5ca309f6d86ce4 to your computer and use it in GitHub Desktop.
Flask todo app todo_api blueprint initialization
# app/todo_api/__init__.py
from flask import Blueprint
todo_api = Blueprint('todo_api', __name__)
from . import views
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment