Added graphql docs endpoint.

This commit is contained in:
Wyatt Johnson
2017-02-08 17:41:28 -07:00
parent fb9bedc57b
commit 25103630b5
7 changed files with 115 additions and 7 deletions
+5
View File
@@ -94,6 +94,11 @@ if (app.get('env') !== 'production') {
endpointURL: '/api/v1/graph/ql'
}));
// GraphQL documention.
app.get('/admin/docs', (req, res) => {
res.render('admin/docs');
});
}
//==============================================================================