Commit b24b2ab2 authored by supundileepa00's avatar supundileepa00

feat: Initialized fastAPI app

parent e39250ce
from fastapi import APIRouter
router = APIRouter()
@router.get("/users")
def get_users():
# Your code here
return {"message": "Get users endpoint"}
@router.post("/users")
def create_user():
# Your code here
return {"message": "Create user endpoint"}
from fastapi import FastAPI
from controllers import users_controller
app = FastAPI()
app.include_router(users_controller.router)
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment