We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0dc4712 commit 096b330Copy full SHA for 096b330
lib/services/openProjectApi.ts
@@ -5,6 +5,9 @@ let baseUrl = "https://openproject.local";
5
6
export function initOpenProjectApi(config: { baseUrl: string }) {
7
baseUrl = config.baseUrl;
8
+ if (baseUrl.endsWith('/')) {
9
+ baseUrl = baseUrl.slice(0, -1);
10
+ }
11
}
12
13
async function get<T>(endpoint: string): Promise<T> {
0 commit comments