Hey everyone,
I'm trying to do blog application and I want main page to have this URL: http://localhost/blog
and posts to have URLs like this: http://localhost/blog/post-slug-name
. So now I'm trying to understand how other actions should look like. Should it be something like this?
http://localhost/blog/post-slug-name/edit (GET/POST)
http://localhost/blog/post-slug-name (DELETE)
http://localhost/blog/create_new (GET/POST)
But I don't like to have "special case" create_new
(because pattern is the same as for regular post). What is common way to do this?