Skip to content

Commit

Permalink
feature: add clear endpoint to settings
Browse files Browse the repository at this point in the history
  • Loading branch information
SRWieZ committed Nov 24, 2024
1 parent 124756b commit 0d7df14
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions resources/js/electron-plugin/src/server/api/settings.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,4 @@
import express from 'express'
import {app, Menu} from 'electron'
import {mapMenu} from "./helper";
import state from "../state";
const router = express.Router();

Expand Down Expand Up @@ -28,4 +26,12 @@ router.delete('/:key', (req, res) => {

res.sendStatus(200)
});

router.delete('/', (req, res) => {

state.store.clear();

res.sendStatus(200)
});

export default router;

0 comments on commit 0d7df14

Please sign in to comment.