Commit ebbbadba authored by nanahira's avatar nanahira

rename api

parent c79e2fc0
Pipeline #14453 passed with stages
in 29 seconds
......@@ -14,7 +14,7 @@ import { BlankReturnMessageDto } from './dto/ReturnMessage.dto';
export class AppController {
constructor(private readonly appService: AppService) {}
@Get('user_avatar/ygobbs.com/:username/:size/:filename.png')
@Get('avatar/:username/:size/:filename.png')
@Header('Cache-Control', 'public, max-age=600')
// @Header('Content-Type', 'image/png')
@ApiOperation({ summary: '获取裁剪后的用户头像' })
......
......@@ -7,6 +7,7 @@ async function bootstrap() {
const app = await NestFactory.create<NestExpressApplication>(AppModule);
app.enableCors();
app.set('trust proxy', ['172.16.0.0/12', 'loopback']);
app.setGlobalPrefix('api');
const documentConfig = new DocumentBuilder()
.setTitle('app')
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment