Initial commit: Full project structure
- Backend: NestJS with Docker - Frontend: Next.js with Docker - Nginx configuration for reverse proxy - PostgreSQL setup - Docker compose for orchestration - Development environment configuration
This commit is contained in:
25
backend/src/app.controller.ts
Normal file
25
backend/src/app.controller.ts
Normal file
@@ -0,0 +1,25 @@
|
||||
// backend/src/app.controller.ts
|
||||
import { Controller, Get } from '@nestjs/common';
|
||||
import { AppService } from './app.service';
|
||||
|
||||
@Controller()
|
||||
export class AppController {
|
||||
constructor(private readonly appService: AppService) {}
|
||||
|
||||
@Get()
|
||||
getRoot() {
|
||||
return {
|
||||
message: 'DyoLink API',
|
||||
version: '1.0',
|
||||
endpoints: {
|
||||
auth: '/api/auth',
|
||||
docs: '/api/docs',
|
||||
},
|
||||
};
|
||||
}
|
||||
|
||||
@Get('hello') // This will be at /api/hello
|
||||
getHello(): string {
|
||||
return this.appService.getHello();
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user