add: questions api endpoints

This commit is contained in:
trisua 2025-06-13 23:25:10 -04:00
parent b29760d7ec
commit d128b2c438
5 changed files with 321 additions and 4 deletions

View file

@ -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,