feat: add posterminal API endpoints

- Add posterminal to STORE_NAMESPACES for timing wrappers
- Create db/posterminal.js wrapper for store methods
- Create routes/posterminal.js with all endpoints:
  - GET /api/posterminal - list terminals
  - PUT /api/posterminal - create terminal (name only, pin randomized)
  - DELETE /api/posterminal/:id - delete terminal
  - PUT/DELETE /api/posterminal/:id/category/:categoryId - toggle category
  - PUT/DELETE /api/posterminal/:id/categories - toggle all categories

Closes #<issue-number>
This commit is contained in:
seb
2026-08-03 06:32:39 +02:00
parent b132f0c17c
commit a4b78ad6d5
3 changed files with 603 additions and 0 deletions

View File

@@ -18,6 +18,7 @@ const STORE_NAMESPACES = [
'lang',
'tax',
'google_auth',
'posterminal',
];
/**