added the api prefix
test-org/trust-module-backend/pipeline/pr-rc This commit looks good
Details
test-org/trust-module-backend/pipeline/pr-rc This commit looks good
Details
parent
23d2fd7eff
commit
243a45756a
|
|
@ -5,6 +5,9 @@ import { AppModule } from './app.module';
|
|||
async function bootstrap() {
|
||||
const app = await NestFactory.create(AppModule);
|
||||
|
||||
// Установка глобального префикса для всех маршрутов
|
||||
app.setGlobalPrefix('api');
|
||||
|
||||
//настройка CORS
|
||||
|
||||
app.enableCors({
|
||||
|
|
|
|||
|
|
@ -9,7 +9,7 @@ import { Logger } from '@nestjs/common';
|
|||
methods: ['GET', 'POST'],
|
||||
credentials: true
|
||||
},
|
||||
namespace: '/metrics-ws'
|
||||
namespace: '/api/metrics-ws'
|
||||
})
|
||||
export class MetricsGateway implements OnGatewayInit, OnGatewayConnection, OnGatewayDisconnect {
|
||||
@WebSocketServer() server: Server;
|
||||
|
|
|
|||
Loading…
Reference in New Issue