From cf9b3887a46de7419c278126d09e14a228126e2d Mon Sep 17 00:00:00 2001 From: Alexander Foremny Date: Sun, 13 Oct 2024 12:16:27 +0200 Subject: fix docs/get-started-cli --- backend/lib/ACMS/API/REST.hs | 2 +- docs/get-started-cli.md | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/backend/lib/ACMS/API/REST.hs b/backend/lib/ACMS/API/REST.hs index ec72db9..44c307c 100644 --- a/backend/lib/ACMS/API/REST.hs +++ b/backend/lib/ACMS/API/REST.hs @@ -21,7 +21,7 @@ import Miso.String (MisoString) restRequest :: String -> Request restRequest endpoint = - fromString ("http://localhost:8081/api/rest/" <> endpoint) + fromString ("http://localhost:8081/api/rest" <> endpoint) schemaVersion :: (APIMonad m, A.FromJSON a) => m a schemaVersion = diff --git a/docs/get-started-cli.md b/docs/get-started-cli.md index a1ffa4f..22c0a0f 100644 --- a/docs/get-started-cli.md +++ b/docs/get-started-cli.md @@ -54,7 +54,7 @@ EOF ## Query the API ```console -curl 'http://localhost:8081' --data ' +curl 'http://localhost:8081/api/query' --data ' SELECT { name: restaurant.name, -- cgit v1.2.3