blob: 2f276170fa21ac6daff0ea62911d81fcf950d3de (
plain)
1
2
3
4
5
6
7
8
9
|
from web import models
from bootstrap import application, manager
from web.views.api.v3.common import check_auth
blueprint_article = manager.create_api_blueprint(models.Article,
methods=['GET', 'POST', 'PUT', 'DELETE'],
preprocessors=dict(GET_SINGLE=[check_auth]))
application.register_blueprint(blueprint_article)
|