Added Swagger and TypeORM, added Hello World

This commit is contained in:
2026-01-29 20:42:07 +01:00
parent be19571e30
commit 1948ce58d3
7 changed files with 679 additions and 98 deletions

View File

@@ -1,12 +1,15 @@
import { Controller, Get } from '@nestjs/common';
import { AppService } from './app.service';
import { Query, Resolver } from '@nestjs/graphql';
@Controller()
@Resolver()
export class AppController {
constructor(private readonly appService: AppService) {}
@Get()
getHello(): string {
@Query(()=>String)
@Get("/")
hello(): string {
return this.appService.getHello();
}
}