{-# LANGUAGE TypeOperators #-}

module Gargantext.API.Routes.Named.FrameCalc (
  -- * Routes types
    FrameCalcAPI(..)
  ) where

import Gargantext.API.Node.FrameCalcUpload.Types (FrameCalcUpload)
import Gargantext.API.Worker (WorkerAPI)
import GHC.Generics (Generic)
import Servant


newtype FrameCalcAPI mode = FrameCalcAPI
  { frameCalcUploadEp :: mode :- Summary " FrameCalc upload"
                              :> "add"
                              :> "framecalc"
                              :> "async"
                              :> NamedRoutes (WorkerAPI '[JSON] FrameCalcUpload)
  } deriving Generic

