add hotspotsRIT page

This commit is contained in:
2023-10-24 17:06:48 -04:00
parent 0f116ecaf5
commit 43d9812406
7 changed files with 2283 additions and 0 deletions

View File

@@ -1,6 +1,7 @@
import flask
from flask_minify import Minify
import json
from tasks import TaskHandler
proj = json.load(open("./static/json/projects.json", "r"))
books = json.load(open("./static/json/books.json", "r"))
@@ -12,6 +13,7 @@ pages['home']['books'] = books
pages['books']['books'] = books
app = flask.Flask(__name__)
tasks = TaskHandler()
@app.route('/api/goto/')
@@ -33,6 +35,18 @@ for i in pages:
def resume():
return flask.send_file("./static/Resume.pdf")
@app.route("/hotspots")
def hotspotsRIT():
return flask.render_template("hotspots.html")
@app.route("/hotspotsrit/cached")
def getCached():
return json.dumps(tasks.getCache())
@app.route("/hotspotsrit/current")
def getLive():
return json.dumps(tasks.getCurrent())
@app.errorhandler(Exception)
def page404(e):