This repository has been archived on 2025-07-06. You can view files and clone it, but cannot push or open issues or pull requests.
Files
bolderjara-serviss/backend/main.py
Leons Aleksandrovs ebc0665468 Finished backend
2025-07-02 19:52:42 +03:00

15 lines
284 B
Python

from fastapi import FastAPI
import sqlite3
from db.users import get_users, get_attendance
# Get fastapi app
app = FastAPI()
@app.get("/")
def list_users():
return get_users()
@app.get("/{eployee_id}")
def list_attendance(eployee_id: int):
return get_attendance(eployee_id)