fix: schoonheids fouten review
This commit is contained in:
parent
2b509774b8
commit
317909b67d
4 changed files with 8 additions and 9 deletions
|
@ -1 +0,0 @@
|
|||
export const API_BASE = "http://localhost:3000/api";
|
|
@ -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> {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue