mirror of
https://github.com/XiaoDaiGua-Ray/ray-template.git
synced 2026-11-17 16:13:36 +08:00
Add the NestJS backend with PostgreSQL and Redis, local setup, and independent frontend and fullstack source archives. Enforce permissions across redirects, let users dismiss the 403 page, and restore missing translation warnings in development.
14 lines
409 B
TypeScript
14 lines
409 B
TypeScript
import { Global, Module } from '@nestjs/common'
|
|
import { APP_GUARD } from '@nestjs/core'
|
|
import { AuthController } from './auth.controller'
|
|
import { AuthGuard } from './auth.guard'
|
|
import { AuthService } from './auth.service'
|
|
|
|
@Global()
|
|
@Module({
|
|
controllers: [AuthController],
|
|
providers: [AuthService, { provide: APP_GUARD, useClass: AuthGuard }],
|
|
exports: [AuthService],
|
|
})
|
|
export class AuthModule {}
|