Skip to content

Instantly share code, notes, and snippets.

@sumn2u
Created October 4, 2022 13:47
Show Gist options
  • Save sumn2u/0f68579165c2df28cf1f46ae59cbc53d to your computer and use it in GitHub Desktop.
Save sumn2u/0f68579165c2df28cf1f46ae59cbc53d to your computer and use it in GitHub Desktop.
JSON example for restricting API through hai-server
{
"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