Skip to content

Commit

Permalink
reformated to all lower case
Browse files Browse the repository at this point in the history
  • Loading branch information
DrewRautenberg committed Jun 3, 2024
1 parent d7b7500 commit c88094e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/api.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ def read_line():
return line_list


@app.get("/Stations/{line}")
@app.get("/stations/{line}")
def read_station(line: str,):
""""Returns stations on line"""
file = f'../data/{line}.csv'
Expand All @@ -36,7 +36,7 @@ def read_station(line: str,):
return station_list
raise HTTPException(status_code=404, detail="Item not found")

@app.get("/Trains/{map_id}")
@app.get("/trains/{map_id}")
async def read_train(map_id: str,):
""""Returns train eta for station"""
max_results = 6
Expand Down

0 comments on commit c88094e

Please sign in to comment.