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:
@@ -18,6 +18,7 @@ const STORE_NAMESPACES = [
|
||||
'lang',
|
||||
'tax',
|
||||
'google_auth',
|
||||
'posterminal',
|
||||
];
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user