add: questions api endpoints
This commit is contained in:
parent
b29760d7ec
commit
d128b2c438
5 changed files with 321 additions and 4 deletions
|
@ -58,6 +58,8 @@ pub enum AppScope {
|
|||
UserReadNotifications,
|
||||
/// Read the user's requests.
|
||||
UserReadRequests,
|
||||
/// Read questions as the user.
|
||||
UserReadQuestions,
|
||||
/// Create posts as the user.
|
||||
UserCreatePosts,
|
||||
/// Create messages as the user.
|
||||
|
@ -155,6 +157,7 @@ impl AppScope {
|
|||
"user-read-sockets" => Self::UserReadSockets,
|
||||
"user-read-notifications" => Self::UserReadNotifications,
|
||||
"user-read-requests" => Self::UserReadRequests,
|
||||
"user-read-questions" => Self::UserReadQuestions,
|
||||
"user-create-posts" => Self::UserCreatePosts,
|
||||
"user-create-messages" => Self::UserCreateMessages,
|
||||
"user-create-questions" => Self::UserCreateQuestions,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue