Skip to content

Duplicate 'thing' socket and route created by generator with bad path #1205

@stuarthallows

Description

@stuarthallows

I ran the generator taking all defaults except for selecting LESS rather than SASS. There are two problems with the generated code.

In routes.js the routes generated are;

  app.use('/api/things', require('./api\thing'));
  app.use('/api/things', require('./api/thing'));
  app.use('/api/users', require('./api/user'));

and in socketio.js the sockets registered are;

  require('..\api\thing\thing.socket').register(socket);
  require('../api/thing/thing.socket').register(socket);

That is two thing entries, one with the slash reversed.

I'm running Windows 10, generator v3.0.0-rc4, npm 2.7.4 and node v0.12.2. I've tried cleaning all caches and reinstalling the generator.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions