Skip to content
Snippets Groups Projects
Commit 73e7a698 authored by stuebinm's avatar stuebinm
Browse files

server: expose jitsi rooms in maps list endpoint

parent 92945f9e
No related branches found
No related tags found
No related merge requests found
...@@ -17,7 +17,7 @@ module Handlers ( ...@@ -17,7 +17,7 @@ module Handlers (
import Universum import Universum
import CheckDir (DirResult (dirresultMaps)) import CheckDir (DirResult (dirresultMaps))
import CheckMap (MapResult (MapResult, mapresultBadges)) import CheckMap (MapResult (..))
import Control.Concurrent.STM (TQueue, dupTChan, readTChan, import Control.Concurrent.STM (TQueue, dupTChan, readTChan,
writeTQueue) writeTQueue)
import Data.Aeson (ToJSON (..), (.=)) import Data.Aeson (ToJSON (..), (.=))
...@@ -60,6 +60,7 @@ instance ToJSON MapService where ...@@ -60,6 +60,7 @@ instance ToJSON MapService where
mapInfo rev mappath MapResult { .. } = A.object mapInfo rev mappath MapResult { .. } = A.object
[ "badges" .= mapresultBadges [ "badges" .= mapresultBadges
-- TODO: type-safe url library for adding the slash? -- TODO: type-safe url library for adding the slash?
, "jitsi" .= mapresultJitsis
, "url" .= (orgUrl org <> adjustedWebPath rev org <> "/" <> toText mappath) ] , "url" .= (orgUrl org <> adjustedWebPath rev org <> "/" <> toText mappath) ]
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment