robfig/revel — pull request #408 by ScruffyProdigy (2013-12-12 17:58:53+00:00)
Title: Adding in RestfulRoutes

changed parseRoutes() to allow a RESOURCE route method, which will
create a series of other routes

If the Controller has a pluralized name, it will create a route for
each of the following methods it finds in the controller: Index, New,
Create, Show, Edit, Update, Destroy

If the Controller has a singularized name, it will create a route for
these methods instead:
New, Create, Show, Edit, Update, Destroy

EDIT:

Tidying Up RestfulRoutes

• Chooses between singular and plural resources based on keyword rather than inflection
• Reduced level of indentation for large section of code
• Standardized comment appearance (although comments beginning with references to lowercase functions or variables start out lowercase)