Skip to content

Commit 2fb6acc

Browse files
committed
t
1 parent 67d6785 commit 2fb6acc

File tree

4 files changed

+4
-7
lines changed

4 files changed

+4
-7
lines changed

__tests__/ServerRoutes.test.js

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ const app = express();
88
app.use(bodyParser.json());
99

1010
import accountRouter from '../server/routes/accountRouter';
11-
import adminRouter from '../server/routes/adminRouter';
11+
1212
import apiRouter from '../server/routes/apiRouter';
1313
import commandRouter from '../server/routes/commandRouter';
1414
import signupRouter from '../server/routes/signupRouter';
@@ -25,7 +25,6 @@ import logoutRouter from '../server/routes/logoutRouter';
2525
// });
2626

2727
app.use('/account', accountRouter);
28-
app.use('/admin', adminRouter);
2928
app.use('/gapi', apiRouter);
3029
app.use('/api', apiRouter);
3130
app.use('command', commandRouter);

server/controllers/grafanaApiController.ts

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ interface GrafanaResponse {
1212
const grafanaApiController: GrafanaApiController = {
1313
getApi: async (req, res, next): Promise<void> => {
1414
try {
15-
const response = await fetch('http://host.docker.internal:3000/api/auth/keys', {
15+
const response = await fetch('http://localhost:3000/api/auth/keys', {
1616
method: 'POST',
1717
// mode: 'no-cors',
1818
headers: {
@@ -50,9 +50,7 @@ const grafanaApiController: GrafanaApiController = {
5050
const { key, dashboard }: { key: string; dashboard: string } = req.body;
5151
try {
5252
const response = await fetch(
53-
`http://host.docker.internal:3000/api/search?query=${encodeURIComponent(
54-
dashboard
55-
)}`,
53+
`http://localhost:3000/api/search?query=${encodeURIComponent(dashboard)}`,
5654
{
5755
method: 'GET',
5856
headers: {

src/components/.DS_Store

-2 KB
Binary file not shown.

vite.config.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ export default defineConfig({
3333
},
3434
},
3535
server: {
36-
port: 4000,
36+
port: 4001,
3737
host: true,
3838
proxy: {
3939
'/api': {

0 commit comments

Comments
 (0)