mirror of
https://github.com/aljazceru/python-teos.git
synced 2025-12-17 06:04:21 +01:00
Sets add_appointment_endpoint from / to /add_appointment for consistency
Also passes the base_url to add_appointment and get_appointment and builds the full endpoint inside (also for consistency)
This commit is contained in:
@@ -189,7 +189,7 @@ class API:
|
||||
"""
|
||||
|
||||
routes = {
|
||||
"/": (self.add_appointment, ["POST"]),
|
||||
"/add_appointment": (self.add_appointment, ["POST"]),
|
||||
"/get_appointment": (self.get_appointment, ["GET"]),
|
||||
"/get_all_appointments": (self.get_all_appointments, ["GET"]),
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user