API.purs 459 Bytes
Newer Older
1 2
module Gargantext.Components.Nodes.Corpus.Chart.API where

3
import Gargantext.Config.REST (AffRESTError)
4 5 6 7
import Gargantext.Routes (SessionRoute(..))
import Gargantext.Sessions (Session, post)
import Gargantext.Types as T

8
recomputeChart :: Session -> T.ChartType -> T.CTabNgramType -> Int -> Int -> AffRESTError (Array Int)
9 10
recomputeChart session chartType ngramType corpusId listId =
  post session (RecomputeListChart chartType ngramType corpusId listId) {}