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.
2 parents 0dc4712 + 096b330 commit 5ab0f82Copy full SHA for 5ab0f82
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