mirror of
https://github.com/hedgedoc/hedgedoc.git
synced 2025-06-01 23:58:58 -04:00
enhancement(auth): better error message handling
Signed-off-by: Erik Michelson <github@erik.michelson.eu>
This commit is contained in:
parent
8e57188ab5
commit
ca9836d691
37 changed files with 199 additions and 207 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', 'config').sendRequest()
|
||||
const response = await new GetApiRequestBuilder<Config>('config').sendRequest()
|
||||
return response.asParsedJsonObject()
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue