Created
October 4, 2022 13:47
-
-
Save sumn2u/0f68579165c2df28cf1f46ae59cbc53d to your computer and use it in GitHub Desktop.
JSON example for restricting API through hai-server
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"secretKey":"123456789", | |
"expiresIn":"1h", | |
"users":[ | |
{ | |
"id":1, | |
"name":"bruno", | |
"email":"[email protected]", | |
"password":"bruno" | |
}, | |
{ | |
"id":2, | |
"name":"techie", | |
"email":"[email protected]", | |
"password":"techie" | |
}, | |
{ | |
"id":3, | |
"name":"nilson", | |
"email":"[email protected]", | |
"password":"nilson" | |
} | |
], | |
"authenticationURL":"/auth/login", | |
"authenticatedURL":[ | |
"/comments" | |
] | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment