refactor api modules

This commit is contained in:
2025-12-22 19:17:33 +01:00
parent c90b2166c1
commit 1333f5e907
100 changed files with 2226 additions and 1936 deletions

View File

@@ -0,0 +1,14 @@
import { Controller, Get } from '@nestjs/common';
import { HelloService } from './HelloService';
@Controller()
export class HelloController {
constructor(private readonly helloService: HelloService) {}
@Get()
getHello() {
return this.helloService.getHello();
}
}

View File

@@ -0,0 +1,9 @@
import { Module } from "@nestjs/common";
import { HelloController } from "./HelloController";
import { HelloService } from "./HelloService";
@Module({
controllers: [HelloController],
exports: [HelloService],
})
export class HelloModule {}

View File

@@ -0,0 +1,11 @@
import { Injectable } from '@nestjs/common';
@Injectable()
export class HelloService {
getHello() {
return "Hello World";
}
}