joyent-portal/cloudapi-graphql/src/index.js
2016-10-20 10:58:19 +01:00

15 lines
239 B
JavaScript

const express = require('express');
const app = express();
app.use('/graphql', require('./endpoint'));
app.listen(3000, (err) => {
if (err) {
console.log(err);
throw err;
}
console.log('Listening at localhost:3000');
});