Skip to content

Commit

Permalink
[FIX] Discourse route not working
Browse files Browse the repository at this point in the history
  • Loading branch information
dhruvjain99 committed Jul 29, 2021
1 parent 6e50076 commit f5747fb
Showing 1 changed file with 52 additions and 0 deletions.
52 changes: 52 additions & 0 deletions cms/api/discourse/config/routes.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,52 @@
{
"routes": [
{
"method": "GET",
"path": "/discourses",
"handler": "discourse.find",
"config": {
"policies": []
}
},
{
"method": "GET",
"path": "/discourses/count",
"handler": "discourse.count",
"config": {
"policies": []
}
},
{
"method": "GET",
"path": "/discourses/:id",
"handler": "discourse.findOne",
"config": {
"policies": []
}
},
{
"method": "POST",
"path": "/discourses",
"handler": "discourse.create",
"config": {
"policies": []
}
},
{
"method": "PUT",
"path": "/discourses/:id",
"handler": "discourse.update",
"config": {
"policies": []
}
},
{
"method": "DELETE",
"path": "/discourses/:id",
"handler": "discourse.delete",
"config": {
"policies": []
}
}
]
}

0 comments on commit f5747fb

Please sign in to comment.