mirror of
https://github.com/hedgedoc/hedgedoc.git
synced 2025-05-19 01:35:18 -04:00

organized repository Signed-off-by: Tilman Vatteroth <tilman.vatteroth@tu-dortmund.de> Co-authored-by: Tilman Vatteroth <tilman.vatteroth@tu-dortmund.de> Co-authored-by: Philip Molares <git@molar.es>
10 lines
277 B
TypeScript
10 lines
277 B
TypeScript
import { store } from '..'
|
|
import { ApiUrlActionType, ApiUrlObject, SetApiUrlAction } from './types'
|
|
|
|
export const setApiUrl = (state: ApiUrlObject): void => {
|
|
const action: SetApiUrlAction = {
|
|
type: ApiUrlActionType.SET_API_URL,
|
|
state
|
|
}
|
|
store.dispatch(action)
|
|
}
|