Skip to content

Commit

Permalink
Create routes.py
Browse files Browse the repository at this point in the history
  • Loading branch information
KOSASIH authored May 11, 2024
1 parent 4e9d62d commit f607b8a
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions api/routes.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
# Use a RESTful API framework like Flask or FastAPI
from fastapi import FastAPI, HTTPException

app = FastAPI()

@app.post("/transactions")
async def create_transaction(transaction: Transaction):
"""Create a new transaction"""
#...

0 comments on commit f607b8a

Please sign in to comment.