Init Nest-Neo4j

This commit is contained in:
2022-09-22 10:08:42 +02:00
parent 3e147ae929
commit 2421651a92
51 changed files with 9766 additions and 0 deletions

View File

@@ -0,0 +1,19 @@
import { Controller, Get, UseGuards } from '@nestjs/common';
import { AppService } from './app.service';
import { JwtAuthGuard } from './auth/jwt.guard';
@Controller()
export class AppController {
constructor(private readonly appService: AppService) {}
@Get()
async getHello(): Promise<string> {
const greeting = await this.appService.getHello();
return greeting;
}
@UseGuards(JwtAuthGuard)
@Get('/protected')
async getProtected() {
return 'PROTECTED';
}
}