move config route under dashboard

it's essentially giving info for various parts of the ui
This commit is contained in:
Girish Ramakrishnan
2023-08-12 21:47:24 +05:30
parent 070f6e5de3
commit 68a3c267e5
10 changed files with 67 additions and 58 deletions
+3 -3
View File
@@ -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);