Move user routes to /api/v1/user
This commit is contained in:
@@ -845,7 +845,7 @@ describe('OAuth2', function () {
|
||||
expect(foo.token_type).to.eql('Bearer');
|
||||
|
||||
// Ensure the token is also usable
|
||||
superagent.get(SERVER_URL + '/api/v1/profile?access_token=' + foo.access_token, function (error, result) {
|
||||
superagent.get(SERVER_URL + '/api/v1/user/profile?access_token=' + foo.access_token, function (error, result) {
|
||||
expect(error).to.not.be.ok();
|
||||
expect(result.status).to.eql(200);
|
||||
expect(result.body.username).to.equal(USER_0.username.toLowerCase());
|
||||
@@ -1232,7 +1232,7 @@ describe('OAuth2', function () {
|
||||
expect(body.token_type).to.eql('Bearer');
|
||||
|
||||
// Ensure the token is also usable
|
||||
superagent.get(SERVER_URL + '/api/v1/profile?access_token=' + body.access_token, function (error, result) {
|
||||
superagent.get(SERVER_URL + '/api/v1/user/profile?access_token=' + body.access_token, function (error, result) {
|
||||
expect(error).to.not.be.ok();
|
||||
expect(result.status).to.eql(200);
|
||||
expect(result.body.username).to.equal(USER_0.username.toLowerCase());
|
||||
|
||||
Reference in New Issue
Block a user