typo
This commit is contained in:
@@ -416,7 +416,7 @@ export function register(app, basePath = '') {
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* @openapi
|
* @openapi
|
||||||
* /posterminal/{id}/categories:
|
* /posterminal/{id}/all:
|
||||||
* put:
|
* put:
|
||||||
* tags: [Posterminal]
|
* tags: [Posterminal]
|
||||||
* summary: Enable all categories on terminal
|
* summary: Enable all categories on terminal
|
||||||
@@ -522,7 +522,7 @@ export function register(app, basePath = '') {
|
|||||||
* schema:
|
* schema:
|
||||||
* $ref: '#/components/schemas/Error'
|
* $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);
|
const selected = requireSelectedCompany(req);
|
||||||
if (selected.error) {
|
if (selected.error) {
|
||||||
return res.status(400).json({ error: 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);
|
const selected = requireSelectedCompany(req);
|
||||||
if (selected.error) {
|
if (selected.error) {
|
||||||
return res.status(400).json({ error: selected.error });
|
return res.status(400).json({ error: selected.error });
|
||||||
|
|||||||
Reference in New Issue
Block a user