aboutsummaryrefslogtreecommitdiff
path: root/lib/API.hs
diff options
context:
space:
mode:
authorstuebinm2026-05-02 14:31:33 +0200
committerstuebinm2026-05-02 14:45:35 +0200
commit5fa550010cd0d9293d253d9528a4029db26ced54 (patch)
tree77f35fef62e4e725edeaa2a0b23879c49bd9253c /lib/API.hs
parent4a1aa2f9ebd4624a677d99a4db77e4a564e56942 (diff)
owntracks: support returning commands
Diffstat (limited to 'lib/API.hs')
-rw-r--r--lib/API.hs2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/API.hs b/lib/API.hs
index ce1f7e8..e3e7107 100644
--- a/lib/API.hs
+++ b/lib/API.hs
@@ -83,7 +83,7 @@ type GtfsRealtimeAPI = "servicealerts" :> QueryFlag "force" :> Get '[Proto] Feed
:<|> "vehiclepositions" :> QueryFlag "force" :> Get '[Proto] FeedMessage
type OwnTracksAPI =
- "pub" :> QueryParam "u" Text :> QueryParam "d" Text :> ReqBody '[JSON] OT.Message :> Post '[JSON] ()
+ "pub" :> QueryParam "u" Text :> QueryParam "d" Text :> ReqBody '[JSON] OT.Message :> Post '[JSON] [OT.Command]
type CompleteAPI =