test
This commit is contained in:
parent
be819cd1bb
commit
51b47beba9
|
|
@ -6,7 +6,7 @@ import chalk from "chalk";
|
||||||
const TOKEN_KEY = 'ACCESS_TOKEN';
|
const TOKEN_KEY = 'ACCESS_TOKEN';
|
||||||
|
|
||||||
const api: AxiosInstance = axios.create({
|
const api: AxiosInstance = axios.create({
|
||||||
baseURL: 'https://wired-terminally-muskrat.ngrok-free.app/api/v1/va', // 🔁 your backend
|
baseURL: 'https://dreadingly-unfighting-pandora.ngrok-free.dev/api/v1/va', // 🔁 your backend
|
||||||
// timeout: 10000,
|
// timeout: 10000,
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -75,11 +75,11 @@ export const registerIPCHandlers = (mainWindow: BrowserWindow) => {
|
||||||
|
|
||||||
|
|
||||||
ipcMain.handle("get-project-list", async () => {
|
ipcMain.handle("get-project-list", async () => {
|
||||||
// console.log("📡 get-project-list called");
|
console.log("📡 get-project-list called");
|
||||||
try {
|
try {
|
||||||
const res = await api.get("/list/projects");
|
const res = await api.get("/list/projects");
|
||||||
|
|
||||||
// console.log(" API /list/project response:", res);
|
console.log(" API /list/project response:", res);
|
||||||
|
|
||||||
// Return only serializable data
|
// Return only serializable data
|
||||||
return JSON.parse(JSON.stringify(res));
|
return JSON.parse(JSON.stringify(res));
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue