aboutsummaryrefslogtreecommitdiffstats
path: root/cli/app
diff options
context:
space:
mode:
authorLibravatar Kierán Meinhardt <kmein@posteo.de>2024-10-11 15:44:54 +0200
committerLibravatar Kierán Meinhardt <kmein@posteo.de>2024-10-11 15:44:54 +0200
commit3ff98358c038186b39613d0bc9fa70001711c69d (patch)
tree55ef45a0a7a3df203c4970d86caf8babae412943 /cli/app
parent309250b6a13cb4bcc6ca244506e75a6b76b78dc8 (diff)
use rest api in cli
Diffstat (limited to 'cli/app')
-rw-r--r--cli/app/Main.hs4
1 files changed, 2 insertions, 2 deletions
diff --git a/cli/app/Main.hs b/cli/app/Main.hs
index 6006e7c..799af2b 100644
--- a/cli/app/Main.hs
+++ b/cli/app/Main.hs
@@ -7,7 +7,7 @@
module Main where
-import API.Collection qualified
+import ACMS.API.REST.Collection qualified
import Control.Applicative ((<**>))
import Data.Aeson qualified as J
import Data.ByteString.Lazy qualified as LB
@@ -83,6 +83,6 @@ main = do
}
} ->
print
- =<< API.Collection.insert collectionName fileName
+ =<< ACMS.API.REST.Collection.create collectionName fileName
=<< J.throwDecode
=<< LB.getContents