16 lines
454 B
TypeScript
16 lines
454 B
TypeScript
import { Constant } from '@/modules/bids/utils/constant';
|
|
import { Controller, Get, Res } from '@nestjs/common';
|
|
import { Response } from 'express';
|
|
import { join } from 'path';
|
|
|
|
@Controller('extensions')
|
|
export class ExtensionsController {
|
|
@Get('policy')
|
|
async policy(@Res() res: Response) {
|
|
const rootDir = process.cwd();
|
|
|
|
const filePath = join(rootDir, `${Constant.MEDIA_PATH}/views/policy.html`);
|
|
return res.sendFile(filePath);
|
|
}
|
|
}
|