diff --git a/client/src/containers/ChannelLoginForm/view.jsx b/client/src/containers/ChannelLoginForm/view.jsx index 54dd8ad2..f033bd42 100644 --- a/client/src/containers/ChannelLoginForm/view.jsx +++ b/client/src/containers/ChannelLoginForm/view.jsx @@ -31,7 +31,7 @@ class ChannelLoginForm extends React.Component { }), credentials: 'include', }; - request('login', params) + request('auth', params) .then(({success, channelName, shortChannelId, channelClaimId, message}) => { if (success) { this.props.onChannelLogin(channelName, shortChannelId, channelClaimId); diff --git a/server/routes/auth/index.js b/server/routes/auth/index.js index 8bdbe1b6..dfe505d6 100644 --- a/server/routes/auth/index.js +++ b/server/routes/auth/index.js @@ -6,7 +6,7 @@ const handleUserRequest = require('../../controllers/auth/user'); module.exports = { '/signup': { method: 'post', controller: [ speechPassport.authenticate('local-signup'), handleSignupRequest ] }, - '/login': { method: 'post', controller: handleLoginRequest }, + '/auth': { method: 'post', controller: handleLoginRequest }, '/logout': { controller: handleLogoutRequest }, '/user': { controller: handleUserRequest }, }; diff --git a/server/routes/index.js b/server/routes/index.js index 5186467d..71223948 100644 --- a/server/routes/index.js +++ b/server/routes/index.js @@ -1,7 +1,7 @@ module.exports = { - ...require('./auth'), ...require('./pages'), ...require('./api'), + ...require('./auth'), ...require('./assets'), ...require('./fallback'), };