mirror of
https://github.com/SyncrowIOT/backend.git
synced 2025-07-17 03:05:13 +00:00
Merge pull request #72 from SyncrowIOT/SP-367-get-region-api-remove-token
removed token from get regions
This commit is contained in:
@ -1,13 +1,6 @@
|
|||||||
import {
|
import { Controller, Get, HttpException, HttpStatus } from '@nestjs/common';
|
||||||
Controller,
|
|
||||||
Get,
|
|
||||||
HttpException,
|
|
||||||
HttpStatus,
|
|
||||||
UseGuards,
|
|
||||||
} from '@nestjs/common';
|
|
||||||
import { RegionService } from '../services/region.service';
|
import { RegionService } from '../services/region.service';
|
||||||
import { ApiTags, ApiBearerAuth } from '@nestjs/swagger';
|
import { ApiTags } from '@nestjs/swagger';
|
||||||
import { JwtAuthGuard } from '../../../libs/common/src/guards/jwt.auth.guard';
|
|
||||||
|
|
||||||
@ApiTags('Region Module')
|
@ApiTags('Region Module')
|
||||||
@Controller({
|
@Controller({
|
||||||
@ -17,8 +10,6 @@ import { JwtAuthGuard } from '../../../libs/common/src/guards/jwt.auth.guard';
|
|||||||
export class RegionController {
|
export class RegionController {
|
||||||
constructor(private readonly regionService: RegionService) {}
|
constructor(private readonly regionService: RegionService) {}
|
||||||
|
|
||||||
@ApiBearerAuth()
|
|
||||||
@UseGuards(JwtAuthGuard)
|
|
||||||
@Get()
|
@Get()
|
||||||
async getAllRegions() {
|
async getAllRegions() {
|
||||||
try {
|
try {
|
||||||
|
Reference in New Issue
Block a user