From 9a07d9b0043bc48719a69d08a79510955391894b Mon Sep 17 00:00:00 2001 From: morteza-mortezai Date: Sun, 15 Feb 2026 12:15:13 +0330 Subject: [PATCH] update routes --- src/modules/dkala/dmenu.controller.ts | 2 +- src/modules/dkala/providers/shop.service.ts | 20 ++++++++++---------- 2 files changed, 11 insertions(+), 11 deletions(-) diff --git a/src/modules/dkala/dmenu.controller.ts b/src/modules/dkala/dmenu.controller.ts index 6a4d5dd..83b3889 100644 --- a/src/modules/dkala/dmenu.controller.ts +++ b/src/modules/dkala/dmenu.controller.ts @@ -17,7 +17,7 @@ import { PermissionsDec } from "../../common/decorators/permission.decorator"; import { PermissionEnum } from "../users/enums/permission.enum"; import { UserDec } from "../../common/decorators/user.decorator"; -@ApiTags("d-menu") +@ApiTags("d-kala") @Controller() @AuthGuards() diff --git a/src/modules/dkala/providers/shop.service.ts b/src/modules/dkala/providers/shop.service.ts index f7942e1..eeda462 100644 --- a/src/modules/dkala/providers/shop.service.ts +++ b/src/modules/dkala/providers/shop.service.ts @@ -55,7 +55,7 @@ export class ShopService { const { data } = await firstValueFrom( this.httpService - .get>(`${this.config.baseUrl}/super-admin/restaurants`, { + .get>(`${this.config.baseUrl}/super-admin/shops`, { params, headers: this.getHeaders(), }) @@ -89,7 +89,7 @@ export class ShopService { try { const { data } = await firstValueFrom( this.httpService - .get(`${this.config.baseUrl}/super-admin/restaurants/${id}`, { + .get(`${this.config.baseUrl}/super-admin/shops/${id}`, { headers: this.getHeaders(), }) .pipe( @@ -140,7 +140,7 @@ export class ShopService { try { const { data } = await firstValueFrom( this.httpService - .post(`${this.config.baseUrl}/super-admin/restaurants`, setupRestaurantDto, { + .post(`${this.config.baseUrl}/super-admin/shops`, setupRestaurantDto, { headers: this.getHeaders(), }) .pipe( @@ -169,7 +169,7 @@ export class ShopService { try { const { data } = await firstValueFrom( this.httpService - .patch(`${this.config.baseUrl}/super-admin/restaurants/${id}`, dto, { + .patch(`${this.config.baseUrl}/super-admin/shops/${id}`, dto, { headers: this.getHeaders(), }) .pipe( @@ -199,7 +199,7 @@ export class ShopService { console.log('subscriptionId', subscriptionId) const { data } = await firstValueFrom( this.httpService - .get(`${this.config.baseUrl}/super-admin/restaurants/subscription/${subscriptionId}`, { + .get(`${this.config.baseUrl}/super-admin/shops/subscription/${subscriptionId}`, { headers: this.getHeaders(), }) .pipe( @@ -288,7 +288,7 @@ export class ShopService { try { const { data } = await firstValueFrom( this.httpService - .get(`${this.config.baseUrl}/super-admin/restaurants/${restaurantId}/admins`, { + .get(`${this.config.baseUrl}/super-admin/shops/${restaurantId}/admins`, { headers: this.getHeaders(), }) .pipe( @@ -317,7 +317,7 @@ export class ShopService { try { const { data } = await firstValueFrom( this.httpService - .delete(`${this.config.baseUrl}/super-admin/restaurants/${restaurantId}/admins/${adminId}`, { + .delete(`${this.config.baseUrl}/super-admin/shops/${restaurantId}/admins/${adminId}`, { headers: this.getHeaders(), data: {}, }) @@ -348,7 +348,7 @@ export class ShopService { const { data } = await firstValueFrom( this.httpService - .post(`${this.config.baseUrl}/super-admin/restaurants/${restaurantId}/admins`, dto, { + .post(`${this.config.baseUrl}/super-admin/shops/${restaurantId}/admins`, dto, { headers: this.getHeaders(), }) .pipe( @@ -380,7 +380,7 @@ export class ShopService { try { const { data } = await firstValueFrom( this.httpService - .patch(`${this.config.baseUrl}/super-admin/restaurants/subscription/${subscriptionId}/upgrade`, { + .patch(`${this.config.baseUrl}/super-admin/shops/subscription/${subscriptionId}/upgrade`, { newPlan, subscriptionEndDate }, { @@ -412,7 +412,7 @@ export class ShopService { try { const { data } = await firstValueFrom( this.httpService - .delete(`${this.config.baseUrl}/super-admin/restaurants/${id}/hard-delete`, { + .delete(`${this.config.baseUrl}/super-admin/shops/${id}/hard-delete`, { headers: this.getHeaders(), data: {}, })