mirror of
https://github.com/redlib-org/redlib.git
synced 2025-06-08 07:37:45 +00:00
Add basic unsubscribe.
This commit is contained in:
parent
345308a9ac
commit
c71df35b22
2 changed files with 27 additions and 17 deletions
|
@ -100,7 +100,7 @@ async fn main() -> std::io::Result<()> {
|
|||
.route("/", web::get().to(subreddit::page))
|
||||
.route("/{sort:hot|new|top|rising|controversial}/", web::get().to(subreddit::page))
|
||||
// Handle subscribe/unsubscribe
|
||||
.route("/subscribe/", web::post().to(subreddit::subscribe))
|
||||
.route("/{action:subscribe|unsubscribe}/", web::post().to(subreddit::set))
|
||||
//.route("/unsubscribe/", web::post().to(subreddit::unsubscribe))
|
||||
// View post on subreddit
|
||||
.service(
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue