Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Changing routes to plural Sailsjs 0.10

Tags:

sails.js

I am just getting started with Sailsjs 0.10 and I am really liking it so far, but I was wondering if it is possible to change the route-names to plural while leaving the model singular? So if I run sails generate api user I want a user model accessible via a users route. Thanks.

like image 757
Markus Avatar asked Jun 12 '14 22:06

Markus


1 Answers

Nevermind, just found it in config/blueprint.js under the setting pluralize.

like image 144
Markus Avatar answered Dec 29 '22 02:12

Markus