add: questions api endpoints
This commit is contained in:
parent
b29760d7ec
commit
d128b2c438
5 changed files with 321 additions and 4 deletions
|
@ -210,6 +210,35 @@ pub fn routes() -> Router {
|
|||
"/questions/{id}/block_ip",
|
||||
post(communities::questions::ip_block_request),
|
||||
)
|
||||
.route(
|
||||
"/questions/from_user/{id}",
|
||||
get(communities::questions::outbox_request),
|
||||
)
|
||||
.route(
|
||||
"/questions/from_community/{id}",
|
||||
get(communities::questions::community_questions_request),
|
||||
)
|
||||
.route(
|
||||
"/questions/timeline/communities",
|
||||
get(communities::questions::from_communities_request),
|
||||
)
|
||||
.route(
|
||||
"/questions/timeline/popular",
|
||||
get(communities::questions::popular_request),
|
||||
)
|
||||
.route(
|
||||
"/questions/timeline/all",
|
||||
get(communities::questions::all_request),
|
||||
)
|
||||
.route(
|
||||
"/questions/timeline/following",
|
||||
get(communities::questions::following_request),
|
||||
)
|
||||
.route("/questions/{id}", get(communities::questions::get_request))
|
||||
.route(
|
||||
"/questions/{id}/answers",
|
||||
get(communities::questions::answers_request),
|
||||
)
|
||||
// auth
|
||||
// global
|
||||
.route("/auth/register", post(auth::register_request))
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue