homemanager-be/src/app.controller.ts

24 lines
447 B
TypeScript

import { Controller, Get, Inject } from '@nestjs/common';
import { AppService } from './app.service';
@Controller()
export class AppController {
constructor(
private readonly appService: AppService,
@Inject('JWT_JWKS')
private readonly jwks: string,
) {}
@Get()
getHello(): string {
return this.appService.getHello();
}
@Get('/.well-known/jwks.json')
getJWKs() {
return {
keys: [this.jwks],
};
}
}