visionmedia / express-resource

Resourceful routing for Express
1.41k stars 140 forks source link

change 'new' to 'store' #100

Closed bagusa4 closed 6 years ago

bagusa4 commented 6 years ago

maybe will good to change 'new' to 'store', because will causing conflict with 'new' keyword?

var orderedActions = [
   'index'    //  GET   /
  , 'create'  //  GET  /
  , 'store'     //  POST   /store
  , 'show'    //  GET   /:id
  , 'edit'    //  GET   /edit/:id
  , 'update'  //  PUT   /:id
  , 'patch'   //  PATCH /:id
  , 'destroy' //  DEL   /:id
];
vendethiel commented 6 years ago

It doesn't conflict.

bagusa4 commented 6 years ago

I have made my controller with class structure, and of course, my action will be methods on my controller, and when I make a method with 'new' name it will be a conflict right?

I write my script on .ts