-}
{-# 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"