aboutsummaryrefslogtreecommitdiff
path: root/api
diff options
context:
space:
mode:
authorLibravatar Silas Bartha <silas@exvacuum.dev>2025-02-09 00:01:23 -0500
committerLibravatar Silas Bartha <silas@exvacuum.dev>2025-02-09 00:01:23 -0500
commit316c025ae86b4fdee2777e95ce950b11a5c1f73b (patch)
treeef77228004b7cde42f87efbb1ae993d05e44ff2e /api
initial commit
Diffstat (limited to 'api')
-rw-r--r--api/.flaskenv2
-rw-r--r--api/api.py8
2 files changed, 10 insertions, 0 deletions
diff --git a/api/.flaskenv b/api/.flaskenv
new file mode 100644
index 0000000..7b3c75e
--- /dev/null
+++ b/api/.flaskenv
@@ -0,0 +1,2 @@
+FLASK_APP=api.py
+FLASK_ENV=development
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()}