Skip to content

Commit

Permalink
Fixed bug in altair-express-middleware package.
Browse files Browse the repository at this point in the history
  • Loading branch information
imolorhe committed Apr 10, 2018
1 parent b6fc62f commit 9293898
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions packages/altair-express-middleware/index.ts
Expand Up @@ -7,10 +7,10 @@ module.exports = {
altairExpress: (opts) => {
const app = express();

app.use(express.static(path.join(__dirname, 'dist')));
app.use(express.static(path.join(__dirname, '../dist')));

app.get('*', (req, res) => {
return res.sendFile(path.join(__dirname, 'dist/index.html'));
return res.sendFile(path.join(__dirname, '../dist/index.html'));
});

return app;
Expand Down
2 changes: 1 addition & 1 deletion packages/altair-express-middleware/package.json
@@ -1,6 +1,6 @@
{
"name": "altair-express-middleware",
"version": "0.1.4",
"version": "1.0.1",
"description": "Express middleware for altair graphql client",
"main": "./build/index.js",
"types": "./build/index.d.ts",
Expand Down

0 comments on commit 9293898

Please sign in to comment.