joyent-portal/legacy/docker-graphql/src/index.js

15 lines
287 B
JavaScript
Raw Normal View History

2017-04-28 00:47:32 +03:00
const express = require('express');
const app = express();
app.use('/graphql', require('./endpoint'));
const server = app.listen(4010, err => {
if (err) {
console.error(err);
throw err;
}
console.log(`Listening at http://0.0.0.0:${server.address().port}/graphql`);
});