forked from facebookarchive/Instadrop
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmain.py
38 lines (26 loc) · 1.2 KB
/
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
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
from google.appengine.ext import webapp
from google.appengine.ext.webapp.util import run_wsgi_app
from google.appengine.dist import use_library
use_library('django', '0.96')
from instadrop.handlers import WelcomeHandler, ConnectHandler
from instagram.handlers import (InstagramAuth, InstagramCallback, \
InstagramSubscribe, InstagramPushCallback, \
InstagramDisconnect, InstagramLoadUser)
from dropbox.handlers import DropboxAuth, DropboxCallback, DropboxDisconnect
from patches import webapp_patches # TODO make this better/automated
application = webapp.WSGIApplication([
("/", WelcomeHandler),
("/connect", ConnectHandler),
("/instagram/auth", InstagramAuth),
("/instagram/callback", InstagramCallback),
("/instagram/subscribe", InstagramSubscribe),
("/instagram/push_callback", InstagramPushCallback),
("/instagram/disconnect", InstagramDisconnect),
("/instagram/load_user", InstagramLoadUser),
("/dropbox/auth", DropboxAuth),
("/dropbox/callback", DropboxCallback),
("/dropbox/disconnect", DropboxDisconnect)], debug=True)
def main():
run_wsgi_app(application)
if __name__ == "__main__":
main()