Skip to content

Commit

Permalink
trigger bug
Browse files Browse the repository at this point in the history
  • Loading branch information
belmeopmenieuwesim committed Aug 4, 2023
1 parent 410b36b commit a223dd0
Showing 1 changed file with 8 additions and 3 deletions.
11 changes: 8 additions & 3 deletions src/app.controller.ts
Original file line number Diff line number Diff line change
@@ -1,9 +1,14 @@
import { EntityManager } from '@mikro-orm/mysql';
import { Controller, Get } from '@nestjs/common';
import { Article } from './article/article.entity';

@Controller('api')
@Controller()
export class AppController {
constructor(private em: EntityManager) {}

@Get()
root(): string {
return 'Hello World!';
async root() {
let article = await this.em.find(Article, {});
return article;
}
}

0 comments on commit a223dd0

Please sign in to comment.