Added the sqlite3 database
This commit is contained in:
11
backend/app/routers/proposal.py
Normal file
11
backend/app/routers/proposal.py
Normal 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
|
Reference in New Issue
Block a user