I'm currently working on a single page application with my own custom router implementation.
window.onhashchange = function(event) {...
Within the URL structure, I am using hash bangs similar to the following examples:
#!/products
#!/products/1
#!/brands
#!/brands/1
However, it appears that these hash bangs primarily focus on GET
requests. I am looking for a REST-based convention that utilizes clean URLs based on industry standards, similar to those used in Angular and React, to indicate when a request should be a POST
or DELETE
.
This way, the router can properly dispatch the respective calls accordingly.