fix: schoonheids fouten review

This commit is contained in:
Gabriellvl 2025-03-22 21:15:23 +01:00
parent 2b509774b8
commit 317909b67d
4 changed files with 8 additions and 9 deletions

View file

@ -1 +0,0 @@
export const API_BASE = "http://localhost:3000/api";

View file

@ -1,10 +1,10 @@
import { API_BASE } from "../../config.ts";
import {apiConfig} from "@/config.ts";
export class BaseController {
protected baseUrl: string;
constructor(basePath: string) {
this.baseUrl = `${API_BASE}/${basePath}`;
this.baseUrl = `${apiConfig.baseUrl}/${basePath}`;
}
protected async get<T>(path: string, queryParams?: Record<string, any>): Promise<T> {