Skip to content
This repository has been archived by the owner on Mar 22, 2022. It is now read-only.

Fixing token endpoint #58

Merged
merged 1 commit into from
Feb 13, 2016
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions src/services/token/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,7 @@ export default function(options){
app.use(options.tokenEndpoint, new Service(options));

// Get our initialize service to that we can bind hooks
const tokenService = app.service('/auth/token');
const tokenService = app.service(options.tokenEndpoint);

// Set up our before hooks
tokenService.before({
Expand All @@ -131,4 +131,4 @@ export default function(options){
get: [hooks.populateUser(options)]
});
};
}
}