{-|
Module      : Gargantext.API.Admin.FrontEnd
Description : Server FrontEnd API
Copyright   : (c) CNRS, 2017-Present
License     : AGPL + CECILL v3
Maintainer  : team@gargantext.org
Stability   : experimental
Portability : POSIX

Loads all static file for the front-end.

-}

{-# LANGUAGE TypeOperators        #-}

---------------------------------------------------------------------
module Gargantext.API.Admin.FrontEnd where

import GHC.IO (FilePath)
import Servant

type FrontEndAPI = Raw

frontEndServer :: FilePath -> Server FrontEndAPI
frontEndServer path = serveDirectoryFileServer path
