-
Notifications
You must be signed in to change notification settings - Fork 0
/
server.py
44 lines (40 loc) · 2.38 KB
/
server.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
from flask import Flask, render_template, request, url_for, redirect
from Blueprints.AllReports import allReportsBlueprint
from Blueprints.currentReport import currentReportBlueprint
from Blueprints.exportJira import exportJiraBlueprint
from Blueprints.exportWord import exportWordBlueprint
from Blueprints.note import noteBlueprint
from Blueprints.section import sectionBlueprint
from Blueprints.template import templateBlueprint
from Blueprints.vuln import vulnBlueprint
from Blueprints.JsonEncoder import CustomJSONProvider
app = Flask(__name__)
app.json = CustomJSONProvider(app)
# ---------------------------------------------------------------------------- #
# Related to grabbing all of a document/collection #
# ---------------------------------------------------------------------------- #
app.register_blueprint(allReportsBlueprint)
app.register_blueprint(exportJiraBlueprint)
app.register_blueprint(exportWordBlueprint)
# ---------------------------------------------------------------------------- #
# Below is all Report API Calls #
# ---------------------------------------------------------------------------- #
app.register_blueprint(currentReportBlueprint)
# ---------------------------------------------------------------------------- #
# Below is all Section API calls #
# ---------------------------------------------------------------------------- #
app.register_blueprint(sectionBlueprint)
# ---------------------------------------------------------------------------- #
# Below is all Vuln API calls #
# ---------------------------------------------------------------------------- #
app.register_blueprint(vulnBlueprint)
# ---------------------------------------------------------------------------- #
# Below is Notes API Calls #
# ---------------------------------------------------------------------------- #
app.register_blueprint(noteBlueprint)
# ---------------------------------------------------------------------------- #
# Below this is all the Template API Calls #
# ---------------------------------------------------------------------------- #
app.register_blueprint(templateBlueprint)
if __name__ == "__main__":
app.run(debug=True)