move config route under dashboard
it's essentially giving info for various parts of the ui
This commit is contained in:
@@ -18,14 +18,14 @@ describe('Cloudron API', function () {
|
||||
|
||||
describe('config', function () {
|
||||
it('cannot get config without token', async function () {
|
||||
const response = await superagent.get(`${serverUrl}/api/v1/config`)
|
||||
const response = await superagent.get(`${serverUrl}/api/v1/dashboard/config`)
|
||||
.ok(() => true);
|
||||
|
||||
expect(response.statusCode).to.equal(401);
|
||||
});
|
||||
|
||||
it('can get config (admin)', async function () {
|
||||
const response = await superagent.get(`${serverUrl}/api/v1/config`)
|
||||
const response = await superagent.get(`${serverUrl}/api/v1/dashboard/config`)
|
||||
.query({ access_token: owner.token });
|
||||
|
||||
expect(response.statusCode).to.equal(200);
|
||||
@@ -37,7 +37,7 @@ describe('Cloudron API', function () {
|
||||
});
|
||||
|
||||
it('can get config (non-admin)', async function () {
|
||||
const response = await superagent.get(`${serverUrl}/api/v1/config`)
|
||||
const response = await superagent.get(`${serverUrl}/api/v1/dashboard/config`)
|
||||
.query({ access_token: user.token });
|
||||
|
||||
expect(response.statusCode).to.equal(200);
|
||||
|
||||
Reference in New Issue
Block a user