Skip to content

Instantly share code, notes, and snippets.

@duythinht
Created March 26, 2015 16:09
Show Gist options
  • Save duythinht/8307f86549cb9614f731 to your computer and use it in GitHub Desktop.
Save duythinht/8307f86549cb9614f731 to your computer and use it in GitHub Desktop.
from flask import Blueprint
from flask import request
module = Blueprint('api_users', __name__)
@module.route('/', methods=['GET'])
def list():
pass
@module.route('/<id>', methods=['GET'])
def show(id):
pass
@module.route('/', methods=['POST'])
def create():
pass
@module.route('/<id>', methods=['PUT'])
def update(id):
pass
@module.route('/<id>', method=['DELETE'])
def destroy(id):
pass
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment