Fetched users with python

This commit is contained in:
Leons Aleksandrovs
2025-07-02 15:32:59 +03:00
parent 9803b5b35d
commit d72735e416
7 changed files with 46 additions and 0 deletions

10
backend/main.py Normal file
View File

@@ -0,0 +1,10 @@
from fastapi import FastAPI
import sqlite3
from db.users import get_users
# Get fastapi app
app = FastAPI()
@app.get("/")
def list_users():
return get_users()