initial release
This commit is contained in:
14
bizmatch-server/src/account/account.controller.ts
Normal file
14
bizmatch-server/src/account/account.controller.ts
Normal file
@@ -0,0 +1,14 @@
|
||||
import { Controller, Param, Post, UploadedFile, UseInterceptors } from '@nestjs/common';
|
||||
import { FileInterceptor } from '@nestjs/platform-express';
|
||||
import { FileService } from '../file/file.service.js';
|
||||
|
||||
@Controller('account')
|
||||
export class AccountController {
|
||||
constructor(private fileService:FileService){}
|
||||
|
||||
@Post('uploadPhoto/:id')
|
||||
@UseInterceptors(FileInterceptor('file'),)
|
||||
uploadFile(@UploadedFile() file: Express.Multer.File,@Param('id') id:string) {
|
||||
this.fileService.storeFile(file,id);
|
||||
}
|
||||
}
|
||||
4
bizmatch-server/src/account/account.service.ts
Normal file
4
bizmatch-server/src/account/account.service.ts
Normal file
@@ -0,0 +1,4 @@
|
||||
import { Injectable } from '@nestjs/common';
|
||||
|
||||
@Injectable()
|
||||
export class AccountService {}
|
||||
Reference in New Issue
Block a user