{-# LANGUAGE TypeOperators #-}
{-# LANGUAGE DeriveGeneric #-}

module Gargantext.API.Routes.Named.FrameCalc where

import Servant
import GHC.Generics
import Gargantext.API.Node.FrameCalcUpload (FrameCalcUpload)
import Gargantext.API.Admin.Orchestrator.Types

data FrameCalcAPI mode = FrameCalcAPI
  { frameCalcUploadEp :: mode :- Summary " FrameCalc upload"
                              :> "add"
                              :> "framecalc"
                              :> "async"
                              :> AsyncJobs JobLog '[JSON] FrameCalcUpload JobLog
  } deriving Generic

