mirror of
https://github.com/hedgedoc/hedgedoc.git
synced 2025-05-19 01:35:18 -04:00
Change schema of url environment variables (#1237)
Signed-off-by: Tilman Vatteroth <git@tilmanvatteroth.de>
This commit is contained in:
parent
41e493c8bc
commit
a48b4f60bb
18 changed files with 33 additions and 33 deletions
|
@ -8,7 +8,7 @@ import { ImageProxyResponse } from '../../components/markdown-renderer/replace-c
|
|||
import { defaultFetchConfig, expectResponseCode, getApiUrl } from '../utils'
|
||||
|
||||
export const getProxiedUrl = async (imageUrl: string): Promise<ImageProxyResponse> => {
|
||||
const response = await fetch(getApiUrl() + '/media/proxy', {
|
||||
const response = await fetch(getApiUrl() + 'media/proxy', {
|
||||
...defaultFetchConfig,
|
||||
method: 'POST',
|
||||
body: JSON.stringify({
|
||||
|
@ -24,7 +24,7 @@ export interface UploadedMedia {
|
|||
}
|
||||
|
||||
export const uploadFile = async (noteId: string, contentType: string, media: Blob): Promise<UploadedMedia> => {
|
||||
const response = await fetch(getApiUrl() + '/media/upload', {
|
||||
const response = await fetch(getApiUrl() + 'media/upload', {
|
||||
...defaultFetchConfig,
|
||||
headers: {
|
||||
'Content-Type': contentType,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue