mirror of
https://github.com/simplex-chat/simplexmq.git
synced 2026-03-30 14:16:00 +00:00
* smp server: .well-known folder for server pages for SimpleX apps to handle preset server links * add short link group path * test
19 lines
515 B
Haskell
19 lines
515 B
Haskell
{-# LANGUAGE TemplateHaskell #-}
|
|
|
|
module Static.Embedded where
|
|
|
|
import Data.FileEmbed (embedDir, embedFile)
|
|
import Data.ByteString (ByteString)
|
|
|
|
indexHtml :: ByteString
|
|
indexHtml = $(embedFile "apps/smp-server/static/index.html")
|
|
|
|
linkHtml :: ByteString
|
|
linkHtml = $(embedFile "apps/smp-server/static/link.html")
|
|
|
|
mediaContent :: [(FilePath, ByteString)]
|
|
mediaContent = $(embedDir "apps/smp-server/static/media/")
|
|
|
|
wellKnown :: [(FilePath, ByteString)]
|
|
wellKnown = $(embedDir "apps/smp-server/static/.well-known/")
|