From a5367a1a89050d7752e34091742a7c54d846281c Mon Sep 17 00:00:00 2001 From: Ronnie Friman <L4168@student.jamk.fi> Date: Tue, 23 Jul 2019 06:46:04 +0300 Subject: [PATCH] create path for image return --- src/app.controller.ts | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/src/app.controller.ts b/src/app.controller.ts index cce879e..045e5b1 100644 --- a/src/app.controller.ts +++ b/src/app.controller.ts @@ -1,4 +1,4 @@ -import { Controller, Get } from '@nestjs/common'; +import { Controller, Get, Param, Res } from '@nestjs/common'; import { AppService } from './app.service'; @Controller() @@ -9,4 +9,9 @@ export class AppController { getHello(): string { return this.appService.getHello(); } + + @Get('images/:id') + returnImage(@Param('id') id, @Res() res) { + return; + } } -- GitLab