File tree Expand file tree Collapse file tree 2 files changed +5
-3
lines changed Expand file tree Collapse file tree 2 files changed +5
-3
lines changed Original file line number Diff line number Diff line change 1
1
{
2
2
"name" : " strontium" ,
3
- "version" : " 2.9.3 " ,
3
+ "version" : " 2.9.4 " ,
4
4
"description" : " Strontium is a TypeScript toolkit for High Performance API servers built for Production not Projects." ,
5
5
"main" : " lib/src/index.js" ,
6
6
"types" : " lib/src/index.d.ts" ,
Original file line number Diff line number Diff line change @@ -2,6 +2,7 @@ import { RouterMap } from "../abstract/RouterMap"
2
2
import { HTTPError } from "../../errors"
3
3
import { InvalidControllerError } from "../../errors"
4
4
import { InternalServerError } from "../../errors"
5
+ import { ServerOptions } from "fastify"
5
6
import * as Fastify from "fastify"
6
7
import { Container } from "inversify"
7
8
import { Logger } from "../../logging"
@@ -13,13 +14,14 @@ import { isObject } from "../../validation"
13
14
import { EndpointController } from ".."
14
15
15
16
export class FastifyServer implements Process {
16
- protected server : Fastify . FastifyInstance = Fastify ( )
17
+ protected server : Fastify . FastifyInstance = Fastify ( this . fastifyOptions )
17
18
protected isAlive : boolean = false
18
19
19
20
constructor (
20
21
public routes : RouterMap ,
21
22
private port : number = 8080 ,
22
- private host : string = "127.0.0.1"
23
+ private host : string = "127.0.0.1" ,
24
+ private fastifyOptions ?: ServerOptions
23
25
) {
24
26
/*
25
27
To handle limitations in Find My Way (Fastify's internal routing library)
You can’t perform that action at this time.
0 commit comments