Skip to content
This repository has been archived by the owner on Sep 25, 2022. It is now read-only.

Commit

Permalink
add support for /comments/:id endpoint (and derivatives) (spikecodes#…
Browse files Browse the repository at this point in the history
…568)
  • Loading branch information
Daniel-Valentine committed Sep 22, 2022
2 parents 3c0cb2e + 977d5cf commit e2c8487
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -238,6 +238,11 @@ async fn main() {
app.at("/r/:sub/comments/:id").get(|r| post::item(r).boxed());
app.at("/r/:sub/comments/:id/:title").get(|r| post::item(r).boxed());
app.at("/r/:sub/comments/:id/:title/:comment_id").get(|r| post::item(r).boxed());
app.at("/comments/:id").get(|r| post::item(r).boxed());
app.at("/comments/:id/comments").get(|r| post::item(r).boxed());
app.at("/comments/:id/comments/:comment_id").get(|r| post::item(r).boxed());
app.at("/comments/:id/:title").get(|r| post::item(r).boxed());
app.at("/comments/:id/:title/:comment_id").get(|r| post::item(r).boxed());

app.at("/r/:sub/search").get(|r| search::find(r).boxed());

Expand Down

0 comments on commit e2c8487

Please sign in to comment.