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
+4 -2
View File
@@ -1,8 +1,10 @@
import { route } from 'preact-router'
import { useState } from 'preact/hooks'
import { isAdministrator, Solution as SolutionModel, SolutionId, User as UserModel } from '../../shared/model'
import { sortByStringKey } from '../../shared/utils'
import { prependBaseUrl, server } from '../api'
import { server } from '../api'
import { prependBaseUrl, sortByStringKey } from '../../shared/utils'
import { Header } from '../components/Header'
import { MarkdownEditor } from '../components/MarkdownEditor'
import { Select } from '../components/Select'