aboutsummaryrefslogtreecommitdiff
path: root/lib/API.hs
diff options
context:
space:
mode:
authorstuebinm2022-08-14 15:44:19 +0200
committerstuebinm2022-08-14 15:44:19 +0200
commitce14bc010a8f97cd3bab6f5cbd998f614b811546 (patch)
tree854b2726c68b9be3925d8ad222f6afce8b2378a7 /lib/API.hs
parentf13e72076dbdcf0cd53d8558fccbedb98b8ea492 (diff)
controlroom: replace servant/lucid with yesod
aka use something meant for webapps to write the webapp
Diffstat (limited to 'lib/API.hs')
-rw-r--r--lib/API.hs4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/API.hs b/lib/API.hs
index 9ed2846..9400187 100644
--- a/lib/API.hs
+++ b/lib/API.hs
@@ -19,7 +19,7 @@ import Servant (Application, FormUrlEncoded,
Server, err401, err404, type (:>))
import Servant.API (Capture, Get, JSON, NoContent,
PlainText, Post, QueryParam,
- ReqBody, type (:<|>) ((:<|>)))
+ ReqBody, type (:<|>) ((:<|>)), Raw)
import Servant.API.WebSocket (WebSocket)
import Servant.GTFS.Realtime (Proto)
import Servant.Swagger (HasSwagger (..))
@@ -69,7 +69,7 @@ type AdminAPI =
-- documented, which would be silly and way to verbose.
type CompleteAPI = "debug" :> "openapi" :> Get '[JSON] Swagger
:<|> API
- :<|> "cr" :> ControlRoomAPI
+ :<|> "cr" :> Raw
-- TODO write something useful here! (and if it's just "hey this is some websocket thingie")