Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
H
haskell-gargantext
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Przemyslaw Kaminski
haskell-gargantext
Commits
f99ffe40
Commit
f99ffe40
authored
Feb 18, 2020
by
Przemyslaw Kaminski
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[static] use file server, this way index.html is served by default
parent
18fa0db7
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
6 deletions
+2
-6
API.hs
src/Gargantext/API.hs
+0
-4
FrontEnd.hs
src/Gargantext/API/FrontEnd.hs
+2
-2
No files found.
src/Gargantext/API.hs
View file @
f99ffe40
...
...
@@ -73,16 +73,12 @@ import Servant
import
Servant.Auth
as
SA
import
Servant.Auth.Server
(
AuthResult
(
..
))
import
Servant.Auth.Swagger
()
import
Servant.HTML.Blaze
(
HTML
)
--import Servant.Mock (mock)
--import Servant.Job.Server (WithCallbacks)
import
Servant.Job.Async
import
Servant.Static.TH.Internal.Server
(
fileTreeToServer
)
import
Servant.Static.TH.Internal.FileTree
(
fileTypeToFileTree
,
FileType
(
FileTypeFile
))
import
Servant.Swagger
import
Servant.Swagger.UI
-- import Servant.API.Stream
import
Text.Blaze.Html
(
Html
)
--import Gargantext.API.Swagger
...
...
src/Gargantext/API/FrontEnd.hs
View file @
f99ffe40
...
...
@@ -19,9 +19,9 @@ Loads all static file for the front-end.
module
Gargantext.API.FrontEnd
where
import
Servant
import
Servant.Server.StaticFiles
(
serveDirectory
WebApp
)
import
Servant.Server.StaticFiles
(
serveDirectory
FileServer
)
type
FrontEndAPI
=
Raw
frontEndServer
::
Server
FrontEndAPI
frontEndServer
=
serveDirectory
WebApp
"./purescript-gargantext/dist"
frontEndServer
=
serveDirectory
FileServer
"./purescript-gargantext/dist"
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment