forum/api/api.py
2025-02-09 00:01:23 -05:00

9 lines
137 B
Python

import time
from flask import Flask
app = Flask(__name__)
@app.route('/time')
def get_current_time():
return {'time': time.time()}