# Express middleware

If you need to add express middlewares into the GraphQL server, you can create a ./apollo-server/server.js file:

import path from 'path'
import express from 'express'

const distPath = path.resolve(__dirname, '../../dist')

export default app => {
  app.use(express.static(distPath))
}
Last Updated: 12/21/2018, 5:17:46 PM