forked from kamens/gae_bingo
-
Notifications
You must be signed in to change notification settings - Fork 0
/
main.py
37 lines (27 loc) · 1.32 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
from __future__ import absolute_import
from google.appengine.ext import webapp
from google.appengine.ext.webapp.util import run_wsgi_app
from webapp2_extras.routes import RedirectRoute
from gae_bingo import cache, dashboard, middleware, plots, blotter, api, redirect
application = webapp.WSGIApplication([
("/gae_bingo/persist", cache.PersistToDatastore),
("/gae_bingo/log_snapshot", cache.LogSnapshotToDatastore),
("/gae_bingo/blotter/ab_test", blotter.AB_Test),
("/gae_bingo/blotter/bingo", blotter.Bingo),
("/gae_bingo/redirect", redirect.Redirect),
("/gae_bingo", dashboard.Dashboard),
RedirectRoute('/gae_bingo/dashboard', redirect_to='/gae_bingo'),
("/gae_bingo/dashboard/archives", dashboard.Dashboard),
("/gae_bingo/dashboard/export", dashboard.Export),
("/gae_bingo/api/v1/experiments", api.Experiments),
("/gae_bingo/api/v1/experiments/summary", api.ExperimentSummary),
("/gae_bingo/api/v1/experiments/conversions", api.ExperimentConversions),
("/gae_bingo/api/v1/experiments/control", api.ControlExperiment),
("/gae_bingo/api/v1/experiments/notes", api.NoteExperiment),
("/gae_bingo/api/v1/alternatives", api.Alternatives),
])
application = middleware.GAEBingoWSGIMiddleware(application)
def main():
run_wsgi_app(application)
if __name__ == "__main__":
main()