[docker] update image, add README info
[gargantext.git] / src / Gargantext / API / FrontEnd.hs
index 49974160f743102b1b50836d292ac8af18b7f0f6..b309634a07fea7f2cbe3abdd26c0b2a6077bfb62 100644 (file)
@@ -12,15 +12,16 @@ Loads all static file for the front-end.
 -}
 
 {-# LANGUAGE NoImplicitPrelude #-}
-{-# LANGUAGE DataKinds         #-}
-{-# LANGUAGE TemplateHaskell   #-}
+{-# LANGUAGE DataKinds            #-}
+{-# LANGUAGE TypeOperators        #-}
 
 ---------------------------------------------------------------------
 module Gargantext.API.FrontEnd where
 
-import Servant.Static.TH (createApiAndServerDecs)
+import Servant
+import Servant.Server.StaticFiles (serveDirectoryFileServer)
 
----------------------------------------------------------------------
-$(createApiAndServerDecs "FrontEndAPI" "frontEndServer" "purescript-gargantext/dist")
----------------------------------------------------------------------
+type FrontEndAPI = Raw
 
+frontEndServer :: Server FrontEndAPI
+frontEndServer = serveDirectoryFileServer "./purescript-gargantext/dist"