Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
haskell-gargantext
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Grégoire Locqueville
haskell-gargantext
Commits
fa447f2e
Verified
Commit
fa447f2e
authored
Aug 28, 2023
by
Przemyslaw Kaminski
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[auth] nodes auth stub
parent
78bc52e0
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
33 additions
and
1 deletion
+33
-1
gargantext.cabal
gargantext.cabal
+1
-0
NodeAuth.hs
src/Gargantext/API/NodeAuth.hs
+30
-0
Routes.hs
src/Gargantext/API/Routes.hs
+2
-1
No files found.
gargantext.cabal
View file @
fa447f2e
...
@@ -53,6 +53,7 @@ library
...
@@ -53,6 +53,7 @@ library
Gargantext.API.Node.Corpus.Types
Gargantext.API.Node.Corpus.Types
Gargantext.API.Node.File
Gargantext.API.Node.File
Gargantext.API.Node.Share
Gargantext.API.Node.Share
Gargantext.API.NodeAuth
Gargantext.API.Prelude
Gargantext.API.Prelude
Gargantext.Core
Gargantext.Core
Gargantext.Core.NLP
Gargantext.Core.NLP
...
...
src/Gargantext/API/NodeAuth.hs
0 → 100644
View file @
fa447f2e
{-# LANGUAGE CPP #-}
{-# LANGUAGE DataKinds #-}
{-# LANGUAGE GeneralizedNewtypeDeriving #-}
{-# LANGUAGE TypeFamilies #-}
{-# LANGUAGE TypeOperators #-}
{-|
Module : Gargantext.API.NodeAuth
Description :
Copyright : (c) CNRS, 2017-Present
License : AGPL + CECILL v3
Maintainer : team@gargantext.org
Stability : experimental
Portability : POSIX
-}
module
Gargantext.API.NodeAuth
where
import
Servant.API
((
:>
))
import
Servant.Links
(
HasLink
(
..
))
import
Protolude
data
NodeAuth
(
nodeAuths
::
[
*
])
val
-- | A @HasLink@ instance for @NodeAuth@
instance
HasLink
sub
=>
HasLink
(
NodeAuth
(
tag
::
[
*
])
value
:>
sub
)
where
type
MkLink
(
NodeAuth
(
tag
::
[
*
])
value
:>
sub
)
a
=
MkLink
sub
a
toLink
toA
_
=
toLink
toA
(
Proxy
::
Proxy
sub
)
src/Gargantext/API/Routes.hs
View file @
fa447f2e
...
@@ -90,7 +90,8 @@ type GargAdminAPI
...
@@ -90,7 +90,8 @@ type GargAdminAPI
=
"user"
:>
Summary
"First user endpoint"
=
"user"
:>
Summary
"First user endpoint"
:>
Roots
:>
Roots
:<|>
"nodes"
:>
Summary
"Nodes endpoint"
:<|>
"nodes"
:>
Summary
"Nodes endpoint"
:>
ReqBody
'[
J
SON
]
[
NodeId
]
:>
NodesAPI
:>
ReqBody
'[
J
SON
]
[
NodeId
]
:>
NodesAPI
type
GargPrivateAPI'
=
type
GargPrivateAPI'
=
GargAdminAPI
GargAdminAPI
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment