from flask import Blueprint
from flask.ext.restful import Api


blueprint = Blueprint('users', __name__)
api = Api(prefix='/api')
api.init_app(blueprint)

from flask import Blueprint
from flask.ext.restful import Api
from . import resources


blueprint = Blueprint('users', __name__)
api = Api(blueprint, prefix='/api')

api.add_resource(resources.UsersAPI, '/users')

define route