-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathurls.py
52 lines (39 loc) · 1.38 KB
/
urls.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
"""
Endpoints
"""
from handlers.auth import UserHandler, AuthHandler
from handlers.base import StaticHandler
from handlers.invitations import InvitationHandler, InvitationsHandler, InvitationPostHandler
from handlers.logs import LogHandler, LogsHandler
from handlers.swagger import SwaggerHandler
from handlers.topics import TopicHandler, TopicsHandler, TopicPostHandler
from handlers.news import NewsHandler, SingleNewsHandler
from handlers.tweets import TweetsHandler, TweetHandler
from settings import app_settings
__author__ = 'Enis Simsar'
url_patterns = [
# ----- API ENDPOINTS ----- #
# AUTH
# (r"/api/auth", AuthHandler),
# (r"/api/user", UserHandler),
# TOPIC
(r"/api/topic", TopicPostHandler),
(r"/api/topic/(.*)$", TopicHandler),
(r"/api/topics", TopicsHandler),
# NEWS
(r"/api/single_news/(.*)$", SingleNewsHandler),
(r"/api/news", NewsHandler),
# TWEETS
# (r"/api/tweet/(.*)$", TweetHandler),
# (r"/api/tweets", TweetsHandler),
# INVITATIONS
# (r"/api/invitation", InvitationPostHandler),
# (r"/api/invitation/(.*)$", InvitationHandler),
# (r"/api/invitations", InvitationsHandler),
# LOGS
# (r'/api/logs', LogsHandler),
# (r'/api/log/(.*)$', LogHandler),
# ----- UI ENDPOINTS ----- #
(r'/', SwaggerHandler),
(r"/static/(.*)", StaticHandler, {'path': app_settings['template_path']}),
]