add: grant scopes for all community endpoints
This commit is contained in:
parent
ca8f510a3a
commit
c3139ef1d2
10 changed files with 342 additions and 75 deletions
|
@ -46,6 +46,14 @@ pub fn routes() -> Router {
|
|||
"/communities",
|
||||
post(communities::communities::create_request),
|
||||
)
|
||||
.route(
|
||||
"/communities/my/all",
|
||||
post(communities::communities::get_communities_request),
|
||||
)
|
||||
.route(
|
||||
"/communities/{id}",
|
||||
get(communities::communities::get_request),
|
||||
)
|
||||
.route(
|
||||
"/communities/{id}",
|
||||
delete(communities::communities::delete_request),
|
||||
|
@ -127,6 +135,12 @@ pub fn routes() -> Router {
|
|||
)
|
||||
// drafts
|
||||
.route("/drafts", post(communities::drafts::create_request))
|
||||
.route("/drafts/my", get(communities::drafts::get_drafts_request))
|
||||
.route(
|
||||
"/drafts/my/all",
|
||||
get(communities::drafts::get_all_drafts_request),
|
||||
)
|
||||
.route("/drafts/{id}", get(communities::drafts::get_request))
|
||||
.route("/drafts/{id}", delete(communities::drafts::delete_request))
|
||||
.route(
|
||||
"/drafts/{id}/content",
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue