aboutsummaryrefslogtreecommitdiff
path: root/server/lib/Cafp/Main/Server.hs
diff options
context:
space:
mode:
Diffstat (limited to 'server/lib/Cafp/Main/Server.hs')
-rw-r--r--server/lib/Cafp/Main/Server.hs3
1 files changed, 2 insertions, 1 deletions
diff --git a/server/lib/Cafp/Main/Server.hs b/server/lib/Cafp/Main/Server.hs
index a2561a3..5de7403 100644
--- a/server/lib/Cafp/Main/Server.hs
+++ b/server/lib/Cafp/Main/Server.hs
@@ -26,4 +26,5 @@ main = Scotty.scotty 3000 $ do
roomId <- Scotty.param "id"
when (T.length roomId < 6) $
Scotty.raise "Room ID should be at least 6 characters"
- Scotty.html $ "<h1>Scotty, " <> TL.fromStrict roomId <> " me up!</h1>"
+ Scotty.setHeader "Content-Type" "text/html"
+ Scotty.file "assets/client.html"