mirror of
https://github.com/redlib-org/redlib.git
synced 2025-06-08 07:37:45 +00:00
Convert subscription requests to POST
This commit is contained in:
parent
7933d840b3
commit
269bb0bfb6
5 changed files with 64 additions and 63 deletions
|
@ -105,7 +105,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("/{action:subscribe|unsubscribe}/", web::get().to(subreddit::subscriptions))
|
||||
.route("/{action:subscribe|unsubscribe}/", web::post().to(subreddit::subscriptions))
|
||||
// View post on subreddit
|
||||
.service(
|
||||
web::scope("/comments/{id}/{title}")
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue