feat(tasks): mark tasks as completed

This commit is contained in:
Elian Doran
2025-02-19 19:22:38 +02:00
parent d4ef15212f
commit 7c0b43db85
6 changed files with 40 additions and 1 deletions

View File

@@ -282,6 +282,7 @@ function register(app: express.Application) {
apiRoute(GET, "/api/tasks", tasksRoute.getTasks);
apiRoute(PST, "/api/tasks", tasksRoute.createNewTask);
apiRoute(PST, "/api/tasks/:taskId/toggle", tasksRoute.toggleTaskDone);
// in case of local electron, local calls are allowed unauthenticated, for server they need auth
const clipperMiddleware = isElectron ? [] : [auth.checkEtapiToken];