Commit fda51d07 authored by Alfredo Di Napoli's avatar Alfredo Di Napoli

WIP: add FreezeNodeAPI

parent 1d6e00f6
......@@ -17,6 +17,7 @@ module Gargantext.API.Routes.Named.Node (
, Roots(..)
, NodesAPI(..)
, ScoreAPI(..)
, FreezeNodeAPI(..)
-- * API types (might appear in the routes)
, Charts(..)
......@@ -188,6 +189,9 @@ data ScoreAPI mode = ScoreAPI
:> Put '[JSON] [Int]
} deriving Generic
data FreezeNodeAPI mode = FreezeAPI
{ frezeNodeEp :: mode :> Post '[JSON] NodeId
} deriving Generic
data Roots mode = Roots
{ getRootsEp :: mode :- Get '[JSON] [Node HyperdataUser]
......
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