mirror of
https://github.com/hedgedoc/hedgedoc.git
synced 2025-05-30 06:45:47 -04:00
chore(deps): upgrade dependencies for frontend + lint fixes
Signed-off-by: Erik Michelson <github@erik.michelson.eu>
This commit is contained in:
parent
f121ca3458
commit
df6540163c
15 changed files with 681 additions and 357 deletions
frontend/src/pages/api/private
|
@ -57,6 +57,8 @@ const initialConfig: FrontendConfig = {
|
|||
let currentConfig: FrontendConfig = initialConfig
|
||||
|
||||
const handler = (req: NextApiRequest, res: NextApiResponse) => {
|
||||
// This is shorter than storing the return boolean in a variable and then calling respondToTestRequest with if
|
||||
// eslint-disable-next-line @typescript-eslint/no-unused-expressions
|
||||
respondToMatchingRequest<FrontendConfig>(HttpMethod.GET, req, res, currentConfig, 200, false) ||
|
||||
respondToTestRequest<FrontendConfig>(req, res, () => {
|
||||
currentConfig = {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue