diff options
author | stuebinm | 2022-08-14 15:44:19 +0200 |
---|---|---|
committer | stuebinm | 2022-08-14 15:44:19 +0200 |
commit | ce14bc010a8f97cd3bab6f5cbd998f614b811546 (patch) | |
tree | 854b2726c68b9be3925d8ad222f6afce8b2378a7 /lib/API.hs | |
parent | f13e72076dbdcf0cd53d8558fccbedb98b8ea492 (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.hs | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -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") |