This commit is contained in:
2025-11-18 03:48:19 +00:00
parent 5e78c7c529
commit 5ea805c450
10 changed files with 23378 additions and 1 deletions

17
be_getUsers/list_app.py Normal file
View File

@ -0,0 +1,17 @@
# list_app.py
from flask import Flask, jsonify
import os
app = Flask(__name__)
DB_DIR = './data'
DB_FILE = f'{DB_DIR}/db.json'
@app.route('/users')
def users():
with open(DB_FILE, 'r') as f:
data = f.read()
return data, 200
if __name__ == '__main__':
app.run(host='0.0.0.0', port=5002)