refactor: added support for base url using a shared function
This commit is contained in:
+2
-1
@@ -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'
|
||||
|
||||
|
||||
Reference in New Issue
Block a user