From 7b46f3bc2324f5545c38c4af4bf3ea7dbb4ae2c8 Mon Sep 17 00:00:00 2001 From: Phillip Thelen Date: Tue, 2 Apr 2024 17:07:28 +0200 Subject: [PATCH] Fix method name --- website/server/controllers/api-v3/shops.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/website/server/controllers/api-v3/shops.js b/website/server/controllers/api-v3/shops.js index 349abd83df..624101f502 100644 --- a/website/server/controllers/api-v3/shops.js +++ b/website/server/controllers/api-v3/shops.js @@ -146,21 +146,21 @@ api.getBackgroundShopItems = { /** * @apiIgnore - * @api {get} /api/v3/shops/customizations get the available items for the backgrounds shop + * @api {get} /api/v3/shops/customizations get the available items for the customizations shop * @apiName GetCustomizationShopItems * @apiGroup Shops * * @apiSuccess {Object} data List of available backgrounds * @apiSuccess {string} message Success message */ -api.getBackgroundShopItems = { +api.getCustomizationsShop = { method: 'GET', url: '/shops/customizations', middlewares: [authWithHeaders()], async handler (req, res) { const { user } = res.locals; - const resObject = shops.getCustomizationShop(user, req.language); + const resObject = shops.getCustomizationsShop(user, req.language); res.respond(200, resObject); },