mirror of
https://github.com/hedgedoc/hedgedoc.git
synced 2025-06-01 23:58:58 -04:00
fix(frontend): refactor api error handling
Signed-off-by: Tilman Vatteroth <git@tilmanvatteroth.de>
This commit is contained in:
parent
e93144eb40
commit
57bfca7b15
44 changed files with 387 additions and 465 deletions
|
@ -13,6 +13,6 @@ import type { Config } from './types'
|
|||
* @throws {Error} when the api request wasn't successful.
|
||||
*/
|
||||
export const getConfig = async (): Promise<Config> => {
|
||||
const response = await new GetApiRequestBuilder<Config>('config').sendRequest()
|
||||
const response = await new GetApiRequestBuilder<Config>('config', 'config').sendRequest()
|
||||
return response.asParsedJsonObject()
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue