mirror of
https://github.com/asimonson1125/asimonson1125.github.io.git
synced 2026-02-25 05:09:49 -06:00
add hotspotsRIT page
This commit is contained in:
14
src/app.py
14
src/app.py
@@ -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):
|
||||
|
||||
Reference in New Issue
Block a user