def config_api(app): reslist = [ article.Article, article.Tag, githooks.GitHooks, user.User, bloguser.BlogUser, ] for res in reslist: api.add_resource(res)
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)