From 316c025ae86b4fdee2777e95ce950b11a5c1f73b Mon Sep 17 00:00:00 2001 From: Silas Bartha Date: Sun, 9 Feb 2025 00:01:23 -0500 Subject: initial commit --- api/api.py | 8 ++++++++ 1 file changed, 8 insertions(+) create mode 100644 api/api.py (limited to 'api/api.py') diff --git a/api/api.py b/api/api.py new file mode 100644 index 0000000..3e16e58 --- /dev/null +++ b/api/api.py @@ -0,0 +1,8 @@ +import time +from flask import Flask + +app = Flask(__name__) + +@app.route('/time') +def get_current_time(): + return {'time': time.time()} -- cgit v1.2.3