Commit 1d616285 authored by Przemyslaw Kaminski's avatar Przemyslaw Kaminski

[version] add missing Gargantext/Version files

parent 20c42e79
'use strict';
const pkg = require('../../package.json');
exports.version = pkg.version;
module Gargantext.Version where
import Data.Maybe (Maybe(..))
import Effect.Aff (Aff)
import Gargantext.Config.REST as REST
import Gargantext.Ends (toUrl)
import Gargantext.Sessions (Session(..))
type Version = String
foreign import version :: Version
getBackendVersion :: Session -> Aff Version
getBackendVersion (Session { backend }) = REST.get Nothing (toUrl backend "version")
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