Merge pull request #72 from SyncrowIOT/SP-367-get-region-api-remove-token

removed token from get regions
This commit is contained in:
yousef-khriasat-uba
2024-08-11 14:23:27 +03:00
committed by GitHub

View File

@ -1,13 +1,6 @@
import {
Controller,
Get,
HttpException,
HttpStatus,
UseGuards,
} from '@nestjs/common';
import { Controller, Get, HttpException, HttpStatus } from '@nestjs/common';
import { RegionService } from '../services/region.service';
import { ApiTags, ApiBearerAuth } from '@nestjs/swagger';
import { JwtAuthGuard } from '../../../libs/common/src/guards/jwt.auth.guard';
import { ApiTags } from '@nestjs/swagger';
@ApiTags('Region Module')
@Controller({
@ -17,8 +10,6 @@ import { JwtAuthGuard } from '../../../libs/common/src/guards/jwt.auth.guard';
export class RegionController {
constructor(private readonly regionService: RegionService) {}
@ApiBearerAuth()
@UseGuards(JwtAuthGuard)
@Get()
async getAllRegions() {
try {