Beispiel #1
0
def config_api(app):
    reslist = [
        article.Article,
        article.Tag,
        githooks.GitHooks,
        user.User,
        bloguser.BlogUser,
    ]
    for res in reslist:
        api.add_resource(res)
Beispiel #2
0
def config_api(app):
    reslist = [
        article.Article,
        tag.Tag,
        githooks.GitHooks,
        user.User,
        bloguser.BlogUser,
        comment.Comment,
        userinfo.UserInfo,
        captcha.Captcha,
    ]
    for res in reslist:
        api.add_resource(res)