Skip to content

Commit

Permalink
fix helmet example
Browse files Browse the repository at this point in the history
  • Loading branch information
EmrysMyrddin committed Jul 3, 2023
1 parent bf7e7ea commit 99161f8
Showing 1 changed file with 0 additions and 8 deletions.
8 changes: 0 additions & 8 deletions examples/express-helmet/src/index.ts
Original file line number Diff line number Diff line change
@@ -1,18 +1,10 @@
import express from 'express'
import helmet from 'helmet'
import { buildApp } from './app'

const app = express()

const endpoint = buildApp(app)

// Global CSP configuration
app.use(helmet())

app.get('/', (req, res) => {
res.send('Hello World!')
})

app.listen(4000, () => {
console.log(`GraphQL API located at http://localhost:4000${endpoint}`)
})

0 comments on commit 99161f8

Please sign in to comment.