mirror of
https://github.com/benjamin-wilson/public-pool.git
synced 2026-09-29 17:15:03 -07:00
api
This commit is contained in:
+5
-3
@@ -4,8 +4,8 @@ import { FastifyAdapter, NestFastifyApplication } from '@nestjs/platform-fastify
|
||||
|
||||
import { AppModule } from './app.module';
|
||||
|
||||
|
||||
async function bootstrap() {
|
||||
|
||||
const app = await NestFactory.create<NestFastifyApplication>(AppModule, new FastifyAdapter());
|
||||
app.setGlobalPrefix('api')
|
||||
app.useGlobalPipes(
|
||||
@@ -18,7 +18,9 @@ async function bootstrap() {
|
||||
);
|
||||
app.enableCors();
|
||||
|
||||
await app.listen(process.env.PORT, '0.0.0.0');
|
||||
console.log(`http listening on port ${process.env.PORT}`)
|
||||
await app.listen(process.env.PORT, '0.0.0.0', () => {
|
||||
console.log(`https listening on port ${process.env.PORT}`);
|
||||
});
|
||||
|
||||
}
|
||||
bootstrap();
|
||||
|
||||
Reference in New Issue
Block a user