]> Git — Sourcephile - gargantext.git/blob - src/Gargantext/API/FrontEnd.hs
bug fix
[gargantext.git] / src / Gargantext / API / FrontEnd.hs
1 {-|
2 Module : Gargantext.API.FrontEnd
3 Description : Server FrontEnd API
4 Copyright : (c) CNRS, 2017-Present
5 License : AGPL + CECILL v3
6 Maintainer : team@gargantext.org
7 Stability : experimental
8 Portability : POSIX
9
10 Loads all static file for the front-end.
11
12 -}
13
14 {-# LANGUAGE NoImplicitPrelude #-}
15 {-# LANGUAGE DataKinds #-}
16 {-# LANGUAGE TypeOperators #-}
17
18 ---------------------------------------------------------------------
19 module Gargantext.API.FrontEnd where
20
21 import Servant
22 import Servant.Server.StaticFiles (serveDirectoryFileServer)
23
24 type FrontEndAPI = Raw
25
26 frontEndServer :: Server FrontEndAPI
27 frontEndServer = serveDirectoryFileServer "./purescript-gargantext/dist"