joyent-portal/cloudapi-graphql/src/index.js

15 lines
239 B
JavaScript
Raw Normal View History

2016-10-10 18:37:26 +03:00
const express = require('express');
const app = express();
2016-10-20 04:14:26 +03:00
app.use('/graphql', require('./endpoint'));
2016-10-10 18:37:26 +03:00
app.listen(3000, (err) => {
if (err) {
console.log(err);
throw err;
}
console.log('Listening at localhost:3000');
});