update routes

This commit is contained in:
2026-02-15 12:15:13 +03:30
parent bea9ed4110
commit 9a07d9b004
2 changed files with 11 additions and 11 deletions
+1 -1
View File
@@ -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()
+10 -10
View File
@@ -55,7 +55,7 @@ export class ShopService {
const { data } = await firstValueFrom(
this.httpService
.get<IExternalApiResponse<any[]>>(`${this.config.baseUrl}/super-admin/restaurants`, {
.get<IExternalApiResponse<any[]>>(`${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: {},
})