Fix Admin panel categories modal, add error handling, enforce cursor-pointer globally

This commit is contained in:
parsa committed 2026-06-12 21:57:09 +03:30
1 parent 69502fc380
commit 82ab454647
47 files changed
+2968 -653

No files matched your search

+20
View File
@@ -0,0 +1,20 @@
import { Controller, Get, Delete, Param, Query, UseGuards } from '@nestjs/common';
import { PetsService } from './pets.service';
import { JwtAuthGuard } from '../auth/jwt-auth.guard';
@UseGuards(JwtAuthGuard)
@Controller('admin/pets')
export class PetsController {
constructor(private readonly petsService: PetsService) {}
@Get()
async getPets(@Query() query: any) {
return this.petsService.getPets(query);
}
@Delete(':id')
async deletePet(@Param('id') id: string) {
await this.petsService.deletePet(id);
return { success: true };
}
}