Working on session validation
This commit is contained in:
@@ -1,7 +1,8 @@
|
||||
// const serviceHost = process.env.SERVICE_HOST || 'http://localhost';
|
||||
// const servicePort = process.env.SERVICE_PORT || 5000;'
|
||||
// const baseURL = `${serviceHost}:${servicePort}`;
|
||||
const baseUrl = 'http://localhost:5000';
|
||||
// const protocol = process.env.HTTPD_PROTOCOL || 'http';
|
||||
// const host = process.env.HTTPD_HOST || 'localhost';
|
||||
// const port = process.env.HTTPD_PORT || 8080;
|
||||
// const baseUrl = `${protocol}://${host}:${port}/api`;
|
||||
const baseUrl = import.meta.env.VITE_API_URL || 'http://localhost:8080/api';
|
||||
|
||||
export async function getRequest(endpoint: string, params: Record<string, any> = {}): Promise<Response> {
|
||||
Object.keys(params).forEach((key) => params[key] === undefined && delete params[key]);
|
||||
|
||||
Reference in New Issue
Block a user