diff options
author | 2025-02-09 00:01:23 -0500 | |
---|---|---|
committer | 2025-02-09 00:01:23 -0500 | |
commit | 316c025ae86b4fdee2777e95ce950b11a5c1f73b (patch) | |
tree | ef77228004b7cde42f87efbb1ae993d05e44ff2e /api/api.py |
initial commit
Diffstat (limited to 'api/api.py')
-rw-r--r-- | api/api.py | 8 |
1 files changed, 8 insertions, 0 deletions
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()} |