added mock collection REST data

This commit is contained in:
Art Lowel
2016-12-13 15:15:23 +01:00
parent 6c51618a2a
commit 213ca4ae53
3 changed files with 76 additions and 59 deletions

View File

@@ -66,10 +66,10 @@ app.use(cacheControl, express.static(path.join(ROOT, 'dist/client'), { index: fa
/////////////////////////
// ** Example API
// Notice API should be in aseparate process
import { serverApi, createTodoApi } from './backend/api';
import { serverApi, createMockApi } from './backend/api';
// Our API for demos only
app.get('/data.json', serverApi);
app.use('/api', createTodoApi());
app.use('/api', createMockApi());
function ngApp(req, res) {
res.render('index', {