mirror of
https://github.com/sudoxnym/habitica.git
synced 2026-07-13 15:38:59 +00:00
Fix method name
This commit is contained in:
parent
64a500987c
commit
7b46f3bc23
1 changed files with 3 additions and 3 deletions
|
|
@ -146,21 +146,21 @@ api.getBackgroundShopItems = {
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @apiIgnore
|
* @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
|
* @apiName GetCustomizationShopItems
|
||||||
* @apiGroup Shops
|
* @apiGroup Shops
|
||||||
*
|
*
|
||||||
* @apiSuccess {Object} data List of available backgrounds
|
* @apiSuccess {Object} data List of available backgrounds
|
||||||
* @apiSuccess {string} message Success message
|
* @apiSuccess {string} message Success message
|
||||||
*/
|
*/
|
||||||
api.getBackgroundShopItems = {
|
api.getCustomizationsShop = {
|
||||||
method: 'GET',
|
method: 'GET',
|
||||||
url: '/shops/customizations',
|
url: '/shops/customizations',
|
||||||
middlewares: [authWithHeaders()],
|
middlewares: [authWithHeaders()],
|
||||||
async handler (req, res) {
|
async handler (req, res) {
|
||||||
const { user } = res.locals;
|
const { user } = res.locals;
|
||||||
|
|
||||||
const resObject = shops.getCustomizationShop(user, req.language);
|
const resObject = shops.getCustomizationsShop(user, req.language);
|
||||||
|
|
||||||
res.respond(200, resObject);
|
res.respond(200, resObject);
|
||||||
},
|
},
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue