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

9 lines
141 B
Python

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