fix: only show enabled endpoints on /api route
Regaez opened this issue · comments
Currently, the /api
route will show links to all endpoints. This should be changed so it only returns enabled endpoints.
Current
{
"page": "http://localhost:8080/api/pages/",
"user": "http://localhost:8080/api/users/",
"plugin": "http://localhost:8080/api/plugins/",
"config": "http://localhost:8080/api/configs/"
}
Expected
If you only have the page
resource type enabled:
{
"page": "http://localhost:8080/api/pages/"
}