mirror of
https://github.com/vale981/apollo-server
synced 2025-03-06 02:01:40 -05:00
apollo-server-hapi: remove subscriptions boolean from register options and check subscriptionsEnabled
This commit is contained in:
parent
e10bf1d590
commit
ee6994b708
1 changed files with 1 additions and 2 deletions
|
@ -10,7 +10,6 @@ export interface ServerRegistration {
|
|||
app: hapi.Server;
|
||||
server: ApolloServerBase<hapi.Request>;
|
||||
path?: string;
|
||||
subscriptions?: boolean;
|
||||
}
|
||||
|
||||
export interface HapiListenOptions {
|
||||
|
@ -49,7 +48,7 @@ export const registerServer = async ({
|
|||
return h
|
||||
.response(
|
||||
renderPlaygroundPage({
|
||||
subscriptionsEndpoint: server.subscriptions && path,
|
||||
subscriptionsEndpoint: server.subscriptionsEnabled && path,
|
||||
endpoint: path,
|
||||
version: '1.4.0',
|
||||
}),
|
||||
|
|
Loading…
Add table
Reference in a new issue