Skip to content

Commit

Permalink
Add auth to endpoint
Browse files Browse the repository at this point in the history
  • Loading branch information
89Q12 committed Feb 4, 2024
1 parent c706bb1 commit b47534b
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion backend/src/guild/guild.controller.ts
Original file line number Diff line number Diff line change
@@ -1,9 +1,11 @@
import { Controller, Get, Inject, Param } from '@nestjs/common';
import { Controller, Get, Inject, Param, UseGuards } from '@nestjs/common';
import { GuildService } from './guild.service';
import { InjectDiscordClient } from '@discord-nestjs/core';
import { Client } from 'discord.js';
import { JwtAuthGuard } from 'src/auth/jwt/guards/jwt-auth.guard';

@Controller('/')
@UseGuards(JwtAuthGuard)
export class GuildController {
constructor(
@Inject(GuildService) private guildService: GuildService,
Expand Down

0 comments on commit b47534b

Please sign in to comment.