-
Notifications
You must be signed in to change notification settings - Fork 0
/
main.py
23 lines (21 loc) · 946 Bytes
/
main.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
from views import *
from photos import *
app = webapp2.WSGIApplication([
(r'/', MainHandler),
(r'/search', SearchHandler),
(r'/browse', BrowseAlbumsHandler),
(r'/album/create', CreateAlbumHandler),
(r'/album/(\d+)/view', ViewAlbumHandler),
(r'/album/(\d+)/edit', EditAlbumHandler),
(r'/album/(\d+)/add-photo', AddPhotoHandler),
(r'/album/(\d+)/delete', DeleteAlbumHandler),
(r'/album/(\d+)/upload-photo', UploadPhotoHandler),
(r'/album/(\d+)/photo/(\d+)', DownloadPhotoHandler),
(r'/album/(\d+)/add-comment', AddAlbumCommentHandler),
(r'/album/(\d+)/comment/(\d+)/delete', DeleteAlbumCommentHandler),
(r'/album/(\d+)/photo/(\d+)/view', ViewPhotoHandler),
(r'/album/(\d+)/photo/(\d+)/edit', EditPhotoHandler),
(r'/album/(\d+)/photo/(\d+)/delete', DeletePhotoHandler),
(r'/album/(\d+)/photo/(\d+)/add-comment', AddPhotoCommentHandler),
(r'/about', AboutHandler),
], debug=True)