-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmain.py
62 lines (49 loc) · 1.86 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
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
import os
from google.appengine.ext import webapp
from google.appengine.ext.webapp.util import run_wsgi_app
from google.appengine.ext.webapp import template
from config import Config
class MainPage(webapp.RequestHandler):
def get(self):
path = os.path.join(os.path.dirname(__file__), 'templates/index.html')
self.response.out.write(template.render(path, None))
class WhatIsCapturio(webapp.RequestHandler):
def get(self):
path = os.path.join(os.path.dirname(__file__), 'templates/what_is_capturio.html')
self.response.out.write(template.render(path, None))
class HowToGetSetUp(webapp.RequestHandler):
def get(self):
path = os.path.join(os.path.dirname(__file__), 'templates/how_to_get_set_up.html')
self.response.out.write(template.render(path, None))
class UseCases(webapp.RequestHandler):
def get(self):
path = os.path.join(os.path.dirname(__file__), "templates/use_cases.html")
config = Config()
self.response.out.write(template.render(path, {
"site_url": config.site_url,
}))
class ComingFeatures(webapp.RequestHandler):
def get(self):
path = os.path.join(os.path.dirname(__file__), 'templates/coming_features.html')
self.response.out.write(template.render(path, None))
class About(webapp.RequestHandler):
def get(self):
path = os.path.join(os.path.dirname(__file__), 'templates/about.html')
self.response.out.write(template.render(path, None))
class FAQ(webapp.RequestHandler):
def get(self):
path = os.path.join(os.path.dirname(__file__), 'templates/faq.html')
self.response.out.write(template.render(path, None))
application = webapp.WSGIApplication([
("/", MainPage),
("/what_is_capturio", WhatIsCapturio),
("/how_to_get_set_up", HowToGetSetUp),
("/use_cases", UseCases),
("/coming_features", ComingFeatures),
("/about", About),
("/faq", FAQ),
], debug=True)
def main():
run_wsgi_app(application)
if __name__ == '__main__':
main()