This repository has been archived on 2025-07-20. You can view files and clone it, but you cannot make any changes to it's state, such as pushing and creating new issues, pull requests or comments.
hacknotts23/pivot/web/__main__.py
AKP d20ccc03f4
Alter 5 files
Add `formattedSchedules.json`
Add `requirements.txt`
Add `scheduleExport.py`
Add `stations.json`
Add `__main__.py`
2023-02-12 12:11:24 +00:00

15 lines
No EOL
279 B
Python

import flask
if __name__ == "__main__":
app = flask.Flask()
app.add_url_rule("/search", )
app.run(port=8080, debug=True, host="127.0.0.1")
class Endpoints:
@staticmethod
def search():
day = flask.request.args.get("day", 0)
from_station =