{-# LANGUAGE DataKinds #-} {-# LANGUAGE TypeOperators #-} module Cardano.Node.API ( API , NodeAPI ) where import Servant.API (Get, JSON, NoContent, Post, (:<|>), (:>)) import Cardano.Node.Types (PABServerLogMsg) import Control.Monad.Freer.Extras.Log (LogMessage) type API = "healthcheck" :> Get '[JSON] NoContent :<|> "mock" :> NodeAPI -- Routes that are not guaranteed to exist on the real node type NodeAPI = "consume-event-history" :> Post '[JSON] [LogMessage PABServerLogMsg]