""" """ from wheezy.routing import url from shared.views import url_index from membership.web.views import SignInHandler from membership.web.views import SignOutHandler from membership.web.views import SignUpHandler from membership.web.views import UserHandler membership_api_urls = [ url('signin', SignInHandler), url('signup', SignUpHandler), url('signout', SignOutHandler), url('user', UserHandler) ] membership_urls = [ url_index('signin', name='signin'), url_index('signup', name='signup') ]
""" """ from wheezy.routing import url from shared.views import url_index from posts.web.views import PostHandler from posts.web.views import PostCommentsHandler from posts.web.views import SearchPostsHandler posts_api_urls = [ url("search/posts", SearchPostsHandler), url("post/{slug}", PostHandler), url("post/{slug}/comments", PostCommentsHandler), ] posts_urls = [url_index("posts", name="posts"), url_index("post/{slug}", name="post")]
""" """ from wheezy.routing import url from membership.web.urls import membership_api_urls from membership.web.urls import membership_urls from posts.web.urls import posts_api_urls from posts.web.urls import posts_urls from public.web.urls import error_urls from public.web.urls import public_api_urls from public.web.urls import public_urls from public.web.urls import static_urls from shared.views import url_index all_api_urls = [] all_api_urls += membership_api_urls all_api_urls += posts_api_urls all_api_urls += public_api_urls all_urls = [ url_index('', name='default'), url('api/v1/', all_api_urls) ] all_urls += membership_urls all_urls += posts_urls all_urls += public_urls all_urls += [('error/', error_urls)] all_urls += static_urls