Handle about pages
This commit is contained in:
parent
de38f7ef18
commit
518d5753a7
@ -240,6 +240,9 @@ async fn main() -> tide::Result<()> {
|
||||
// Search all of Reddit
|
||||
app.at("/search/").get(search::find);
|
||||
|
||||
// Handle about pages
|
||||
app.at("/about/").get(|req| error(req, "About pages aren't here yet".to_string()));
|
||||
|
||||
app.at("/:id/").get(|req: Request<()>| async {
|
||||
match req.param("id") {
|
||||
// Sort front page
|
||||
|
Loading…
Reference in New Issue
Block a user