-
Notifications
You must be signed in to change notification settings - Fork 3
/
web.py
33 lines (27 loc) · 832 Bytes
/
web.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
"""
This is the web.py file required by App Engine to set up URL paths to handlers.
It defines two URLs, /actions and /views.
"""
from google.appengine.ext import webapp
from google.appengine.ext.webapp.util import run_wsgi_app
from google.appengine.ext.webapp import template
from pages import *
from api import *
app = webapp.WSGIApplication([
('/login', Login),
('/upload', Upload),
('/download', Download),
('/downloadReport', DownloadReport),
('/uploadReport', UploadReport),
('/downloadModel', DownloadModel),
('/api/user', UserService),
('/api/protocol', ProtocolService),
('/api/dataset', DatasetService),
('/api/pcap', PcapService),
('/api/report', ReportService),
('/api/adversary', AdversaryService)
], debug=True)
def main():
run_wsgi_app(application)
if __name__ == "__main__":
main()