import TokenAuthenticator from '../authenticators/token';

export function initialize(application) {
  application.register('authenticator:token', TokenAuthenticator);
}

export default {
  name: 'simple-token',
  initialize
};

import TokenAuthenticator from '../authenticators/token';
import TokenAuthorizer from '../authorizers/token';

export function initialize(application) {
  application.register('authenticator:token', TokenAuthenticator);
  application.register('authorizer:token', TokenAuthorizer);
}

export default {
  name: 'simple-token',
  initialize
};

Fix authorizer missing from container
Fix authorizer missing from container

Using routes with authorization was failing because the container didn't
contain a definition for the factory. Adding the authorizer in the
initialization fixes this.

Fixes issue #6
