-
Notifications
You must be signed in to change notification settings - Fork 2
/
urls.py
86 lines (84 loc) · 3.82 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
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
import webapp2
from controllers.home import HomeHandler
from controllers.all import AllHandler
from controllers.admin.dashboard import AdminDashboardHandler
from controllers.admin.upgrade import AdminUpgradeHandler
from controllers.profile import ProfileInitHandler
from controllers.profile import ProfileSwitchHandler
from controllers.station.manage import StationManageHandler
from controllers.station.check import StationCheckHandler
from controllers.station.station import StationHandler
from controllers.station.picture import StationPictureHandler
from controllers.station.broadcast import BroadcastHandler
from controllers.station.track import TrackHandler
from controllers.station.page import StationPageHandler
from controllers.api.background import ApiBackgroundHandler
from controllers.api.buffer import ApiBufferHandler
from controllers.api.buffer import ApiBufferDeleteHandler
from controllers.api.likes import ApiLikesHandler
from controllers.api.likes import ApiLikesDeleteHandler
from controllers.api.messages import ApiMessagesHandler
from controllers.api.tracks import ApiTracksHandler
from controllers.api.tracks import ApiTracksDeleteHandler
from controllers.api.sessions import ApiSessionsHandler
from controllers.api.recommendations import ApiRecommendationsHandler
from controllers.api.now import ApiNowHandler
from controllers.company.company import TermsHandler
from controllers.company.company import FaqHandler
from controllers.company.company import PressHandler
from controllers.company.company import PressFrHandler
from controllers.session.connect import ConnectHandler
from controllers.session.disconnect import DisconnectHandler
from controllers.taskqueue.counter import CounterHandler
from controllers.taskqueue.multicast import MulticastHandler
from controllers.taskqueue.mail import MailHandler
from controllers.taskqueue.track import TrackDeleteHandler
from controllers.taskqueue.upgrade import UpgradeHandler
from controllers.picture.upload import PictureUploadHandler
from controllers.picture.view import PictureViewHandler
from controllers.picture.delete import PictureDeleteHandler
from controllers.crawler.soundcloud import SoundcloudCrawlerHandler
app = webapp2.WSGIApplication(
[
("/picture/upload", PictureUploadHandler),
("/picture/([^/]+)?/view", PictureViewHandler),
("/picture/([^/]+)?/delete", PictureDeleteHandler),
("/taskqueue/counter", CounterHandler),
("/taskqueue/multicast", MulticastHandler),
("/taskqueue/deletetrack", TrackDeleteHandler),
("/taskqueue/upgrade", UpgradeHandler),
("/taskqueue/mail", MailHandler),
("/_ah/channel/connected/", ConnectHandler),
("/_ah/channel/disconnected/", DisconnectHandler),
('/api/(\w+)/background', ApiBackgroundHandler),
('/api/buffer', ApiBufferHandler),
('/api/buffer/([\w.]+)', ApiBufferDeleteHandler),
('/api/likes', ApiLikesHandler),
('/api/likes/(\w+)', ApiLikesDeleteHandler),
('/api/tracks', ApiTracksHandler),
('/api/tracks/([\w.]+)', ApiTracksDeleteHandler),
('/api/sessions', ApiSessionsHandler),
('/api/messages', ApiMessagesHandler),
('/api/recommendations', ApiRecommendationsHandler),
('/api/now', ApiNowHandler),
('/admin/dashboard', AdminDashboardHandler),
('/admin/upgrade', AdminUpgradeHandler),
('/', HomeHandler),
('/station/manage', StationManageHandler),
('/station/check', StationCheckHandler),
('/(\w+)', StationHandler),
('/(\w+)/picture', StationPictureHandler),
('/broadcast/([\w.]+)', BroadcastHandler),
('/profile/init', ProfileInitHandler),
('/profile/switch/([0-9]+)', ProfileSwitchHandler),
('/track/([0-9]+)', TrackHandler),
('/station/page', StationPageHandler),
('/company/terms', TermsHandler),
('/company/faq', FaqHandler),
('/company/press', PressHandler),
('/company/press/fr', PressFrHandler),
('/soundcloud/crawler/([\w-]+)', SoundcloudCrawlerHandler),
('/.*', AllHandler),
],
debug=True
)