Skip to content

Commit

Permalink
feat(api): enable prod system
Browse files Browse the repository at this point in the history
  • Loading branch information
DlieBG committed Feb 18, 2024
1 parent 57427cf commit 30d3e00
Showing 1 changed file with 0 additions and 13 deletions.
13 changes: 0 additions & 13 deletions api/src/main.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
from models import ResponseDto, BalanceRequestDto, BookingRequestDto
from atoss import get_balance, post_booking
from fastapi import FastAPI
from time import sleep


app = FastAPI()
Expand All @@ -15,18 +14,6 @@ def balance(body: BalanceRequestDto) -> ResponseDto:

@app.post('/api/booking')
def booking(body: BookingRequestDto) -> ResponseDto:
print(body)
sleep(2)
return ResponseDto(
personal_number="1234",
name="Schwering, Bene",
booked_time="10:10:36",
action=body.action,
type=body.type,
flexi_date="17.02.2024",
flexi_balance="10:01",
)

return post_booking(
personal_number=body.personal_number,
pin=body.pin,
Expand Down

0 comments on commit 30d3e00

Please sign in to comment.