mirror of
https://github.com/nestjs/nest.git
synced 2026-02-21 23:11:44 +00:00
11 lines
322 B
TypeScript
11 lines
322 B
TypeScript
import { CanActivate, ExecutionContext, Injectable } from '@nestjs/common';
|
|
import { GqlExecutionContext } from '@nestjs/graphql';
|
|
|
|
@Injectable()
|
|
export class CatsGuard implements CanActivate {
|
|
canActivate(context: ExecutionContext): boolean {
|
|
const ctx = GqlExecutionContext.create(context);
|
|
return true;
|
|
}
|
|
}
|