Skip to content

iron generate route with '/users/:_id' generates route as '/users/id' #234

Open

Description

@HarleyGolfGuy

When I tried to generate the new route as so:
iron g:route '/users/:_id

The resulting route in routes.js looks like this:
Router.route('/users/id', { name: 'usersId', controller: 'IdController', where: 'client' });

I expected
Router.route('/users/:_id', { name: 'usersId', controller: 'IdController', where: 'client' });

Activity

  1. nodeGarden commented on Sep 17, 2016

    @nodeGarden

    +1

  2. zorrobyte commented on Jan 27, 2017

    @zorrobyte

    +1

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions