# -*- coding: utf-8 -*-

"""
API definition module.
"""

from flask import Blueprint
from flask_restful import Api

from .resources.user import UserAuth, UserItem, UserList, UserFollow

# Create an API-related blueprint
api_bp = Blueprint(name='api', import_name=__name__)

api = Api(api_bp)
api.add_resource(UserList, '/users')
api.add_resource(UserItem, '/users/<int:id>')
api.add_resource(UserAuth, '/user-auth')
api.add_resource(
    UserFollow, '/user-follow/<int:follower_id>/<followed_username>'
)

[((13, 9, 13, 52), 'flask.Blueprint', 'Blueprint', (), '', False, 'from flask import Blueprint\n'), ((15, 6, 15, 17), 'flask_restful.Api', 'Api', ({(15, 10, 15, 16): 'api_bp'}, {}), '(api_bp)', False, 'from flask_restful import Api\n')]