Rename /api/ftl/endpoints -> /api/endpoints

Signed-off-by: DL6ER <dl6er@dl6er.de>
This commit is contained in:
DL6ER
2023-01-16 21:37:11 +01:00
parent 0c1c2b0bc3
commit c34975180e
5 changed files with 63 additions and 59 deletions

View File

@@ -136,7 +136,7 @@ class FTLAPI():
def get_endpoints(self):
try:
# Get all endpoints from FTL and sort them for comparison
response = self.GET("/api/ftl/endpoints")
response = self.GET("/api/endpoints")
for method in response["endpoints"]:
for endpoint in response["endpoints"][method]:
self.endpoints[method].append(endpoint["uri"] + endpoint["parameters"])