Exemplo n.º 1
0
def create_blueprint():
    api.init_app(blueprint)
    api.add_resource(LoginRequest, "/login")
Exemplo n.º 2
0
def create_blueprint():
    api.init_app(blueprint)
    api.add_resource(AddNicknameRequest, '/nickname')
    api.add_resource(SearchUserRequest,  '/search')
    api.add_resource(UserGroupsRequest,  '/groups')
    api.add_resource(NewsFeedRequest,    '/newsfeed')
    api.add_resource(FetchUserRequest,   '/fetch')
    api.add_resource(AnonPostsRequest,   '/anons')
    api.add_resource(UpdateUserRequest,  '/update')
Exemplo n.º 3
0
def create_blueprint():
    api.init_app(blueprint)
    api.add_resource(InviteRequest, 'create')
    api.add_resource(InviteFetchRequest, 'fetch')
    api.add_resource(InviteGetRequest, 'get')
Exemplo n.º 4
0
def create_blueprint():
    api.init_app(blueprint)
    api.add_resource(PostRequest, '/create')
    api.add_resource(HotRequest, '/hot')
    api.add_resource(CommentsRequest, '/comments')
    api.add_resource(DeletePostRequest, '/delete')
    api.add_resource(AnonActionRequest, '/anon')
    api.add_resource(SearchPostsRequest, '/search')
Exemplo n.º 5
0
def create_blueprint():
    api.init_app(blueprint)
    api.add_resource(DeletesRequest, '/deletes')
    api.add_resource(ExploreRequest, '/explore')
    api.add_resource(AuthRequest, '/auth')
    api.add_resource(SearchGroupsAndUserRequest, '/search')