Add SortOrder enum and enhance Service query with sorting and filtering options

This commit is contained in:
2024-10-06 12:09:58 +07:00
parent aa5817fb06
commit 121396aa8f
5 changed files with 50 additions and 3 deletions

View File

@@ -3,7 +3,13 @@ import { AppModule } from './app.module';
async function bootstrap() {
const app = await NestFactory.create(AppModule);
app.enableCors({
origin: '*',
methods: 'GET,HEAD,PUT,PATCH,POST,DELETE',
preflightContinue: false,
optionsSuccessStatus: 204,
credentials: true,
});
await app.listen(3000);
}
bootstrap();