module Main where
import Network.Wai.Middleware.Static (addBase, noDots, staticPolicy, (>->))
import System.Environment (lookupEnv)
import Web.Scotty (middleware, scotty, get, html)
main :: IO ()
main = do
let port =3000
scotty port $ do
middleware $ staticPolicy (noDots >-> addBase "static/images")
get "/" (html "Hello!")
Not sure how relevant Blaze is; it looks like a server-side templating library, which may turn out useful when it comes to rendering the page in which some single-page JavaScript app is served, perhaps via a static URL.
Docs about serving static files using Scotty:
Not sure how relevant Blaze is; it looks like a server-side templating library, which may turn out useful when it comes to rendering the page in which some single-page JavaScript app is served, perhaps via a static URL.