aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLibravatar Alexander Foremny <aforemny@posteo.de>2024-10-13 12:16:27 +0200
committerLibravatar Alexander Foremny <aforemny@posteo.de>2024-10-13 12:16:27 +0200
commitcf9b3887a46de7419c278126d09e14a228126e2d (patch)
tree4e77d19560d22035e10692332410334678046fe5
parentd00e385942a90e7e0600ee878db5d6c9120a6558 (diff)
fix docs/get-started-cli
-rw-r--r--backend/lib/ACMS/API/REST.hs2
-rw-r--r--docs/get-started-cli.md2
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,