mirror of
https://github.com/hedgedoc/hedgedoc.git
synced 2025-05-15 15:44:45 -04:00
15 lines
383 B
TypeScript
15 lines
383 B
TypeScript
/*
|
|
* SPDX-FileCopyrightText: 2021 The HedgeDoc developers (see AUTHORS file)
|
|
*
|
|
* SPDX-License-Identifier: AGPL-3.0-only
|
|
*/
|
|
|
|
import { store } from '..'
|
|
import { ApiUrlActionType, ApiUrlObject, SetApiUrlAction } from './types'
|
|
|
|
export const setApiUrl = (state: ApiUrlObject): void => {
|
|
store.dispatch({
|
|
type: ApiUrlActionType.SET_API_URL,
|
|
state
|
|
} as SetApiUrlAction)
|
|
}
|