mirror of
https://github.com/DSpace/dspace-angular.git
synced 2025-10-12 12:33:07 +00:00
added mock collection REST data
This commit is contained in:
@@ -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', {
|
||||
|
Reference in New Issue
Block a user