Skip to content

Commit 368427c

Browse files
authored
Add route to quit the application (#181)
1 parent e3010a0 commit 368427c

File tree

1 file changed

+5
-0
lines changed
  • resources/js/electron-plugin/src/server/api

1 file changed

+5
-0
lines changed

resources/js/electron-plugin/src/server/api/app.ts

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,11 @@ import express from 'express'
22
import { app } from 'electron'
33
const router = express.Router();
44

5+
router.post('/quit', (req, res) => {
6+
app.quit()
7+
res.sendStatus(200);
8+
});
9+
510
router.post('/show', (req, res) => {
611
app.show()
712
res.sendStatus(200);

0 commit comments

Comments
 (0)