refactor: added support for base url using a shared function

This commit is contained in:
2023-01-11 12:29:37 +01:00
parent 64617fffcf
commit 2dfe47b16e
11 changed files with 42 additions and 24 deletions
+2 -1
View File
@@ -1,7 +1,8 @@
import Router from 'preact-router'
import { route } from 'preact-router'
import { useContext, useEffect } from 'preact/hooks'
import { prependBaseUrl } from './api'
import { prependBaseUrl } from '../shared/utils'
import { ServerContext } from './hooks'
import { UserProvider } from './hooks/useCurrentUser'