Skip to content
This repository has been archived by the owner on Nov 29, 2021. It is now read-only.

Commit

Permalink
feat: add globalFix
Browse files Browse the repository at this point in the history
  • Loading branch information
YanceyOfficial committed Nov 9, 2021
1 parent 8ea42c1 commit 90eed1a
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions src/graphql/graphqls.module.ts
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ import { configCORS } from '../shared/utils'
debug: !configService.isEnvProduction,
playground: !configService.isEnvProduction,
installSubscriptionHandlers: true,
useGlobalPrefix: true,
typePaths: ['./**/*.gql'],
autoSchemaFile: SCHEMA_GQL_FILE_NAME,
context: ({ req }) => ({ req }),
Expand Down
1 change: 1 addition & 0 deletions src/main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ import { AppModule } from './app.module'

const bootstrap = async () => {
const app = await NestFactory.create<NestExpressApplication>(AppModule)
app.setGlobalPrefix('beg')

configMiddlewares(app)
configLog(app)
Expand Down

0 comments on commit 90eed1a

Please sign in to comment.