This commit is contained in:
seb
2026-08-03 06:45:00 +02:00
parent a4b78ad6d5
commit c8f8dd3d54

View File

@@ -416,7 +416,7 @@ export function register(app, basePath = '') {
/**
* @openapi
* /posterminal/{id}/categories:
* /posterminal/{id}/all:
* put:
* tags: [Posterminal]
* summary: Enable all categories on terminal
@@ -522,7 +522,7 @@ export function register(app, basePath = '') {
* schema:
* $ref: '#/components/schemas/Error'
*/
app.put(`${basePath}/posterminal/:id/categories`, async (req, res) => {
app.put(`${basePath}/posterminal/:id/all`, async (req, res) => {
const selected = requireSelectedCompany(req);
if (selected.error) {
return res.status(400).json({ error: selected.error });
@@ -543,7 +543,7 @@ export function register(app, basePath = '') {
}
});
app.delete(`${basePath}/posterminal/:id/categories`, async (req, res) => {
app.delete(`${basePath}/posterminal/:id/all`, async (req, res) => {
const selected = requireSelectedCompany(req);
if (selected.error) {
return res.status(400).json({ error: selected.error });