Move user routes to /api/v1/user

This commit is contained in:
Girish Ramakrishnan
2018-04-26 19:57:44 -07:00
parent 561d2d9f8b
commit e0da6679e9
7 changed files with 35 additions and 35 deletions
+2 -2
View File
@@ -369,7 +369,7 @@ describe('Clients', function () {
setup,
function (callback) {
superagent.get(SERVER_URL + '/api/v1/profile')
superagent.get(SERVER_URL + '/api/v1/user/profile')
.query({ access_token: token })
.end(function (error, result) {
expect(result).to.be.ok();
@@ -533,7 +533,7 @@ describe('Clients', function () {
expect(result.statusCode).to.equal(204);
// further calls with this token should not work
superagent.get(SERVER_URL + '/api/v1/profile')
superagent.get(SERVER_URL + '/api/v1/user/profile')
.query({ access_token: token })
.end(function (error, result) {
expect(result.statusCode).to.equal(401);