Added the sqlite3 database

This commit is contained in:
GotthardG
2024-11-01 14:13:38 +01:00
parent 579e769bb0
commit 48cd233231
11 changed files with 425 additions and 0 deletions

View File

@ -0,0 +1,11 @@
from fastapi import APIRouter
from typing import List, Optional
from app.data.data import proposals
from app.models import Proposal # Import the Address model
router = APIRouter()
@router.get("/", response_model=List[Proposal])
async def get_proposals():
return proposals