Commit 8d4378be authored by Alexandre Delanoë's avatar Alexandre Delanoë

[FIX] backend url

parent 36f89667
...@@ -12,7 +12,7 @@ import Effect.Aff (Aff) ...@@ -12,7 +12,7 @@ import Effect.Aff (Aff)
import Effect.Class (liftEffect) import Effect.Class (liftEffect)
import Gargantext.Config (publicBackend) import Gargantext.Config (publicBackend)
import Gargantext.Config.REST (get) import Gargantext.Config.REST (get)
import Gargantext.Ends (toUrl) import Gargantext.Ends (backendUrl)
import Gargantext.Prelude import Gargantext.Prelude
import Gargantext.Hooks.Loader (useLoader) import Gargantext.Hooks.Loader (useLoader)
import Gargantext.Utils.Argonaut (genericSumDecodeJson, genericSumEncodeJson) import Gargantext.Utils.Argonaut (genericSumDecodeJson, genericSumEncodeJson)
...@@ -56,7 +56,7 @@ loadPublicData :: Record LoadProps -> Aff (Array PublicData) ...@@ -56,7 +56,7 @@ loadPublicData :: Record LoadProps -> Aff (Array PublicData)
loadPublicData _l = do loadPublicData _l = do
backend <- liftEffect publicBackend backend <- liftEffect publicBackend
_ <- liftEffect (log backend) _ <- liftEffect (log backend)
get Nothing (toUrl backend "public") get Nothing (backendUrl backend "public")
renderPublic :: R.Element renderPublic :: R.Element
renderPublic = R.createElement renderPublicCpt {} [] renderPublic = R.createElement renderPublicCpt {} []
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment