First steps in integration of IVIS.
This commit is contained in:
parent
bf626993f4
commit
dce5ba7464
35 changed files with 10098 additions and 91 deletions
21
mvis/server/index.js
Normal file
21
mvis/server/index.js
Normal file
|
@ -0,0 +1,21 @@
|
|||
'use strict';
|
||||
|
||||
require('./extensions-common');
|
||||
const em = require('../ivis-core/server/lib/extension-manager');
|
||||
|
||||
const path = require('path');
|
||||
|
||||
em.set('app.clientDist', path.join(__dirname, '..', 'client', 'dist'));
|
||||
|
||||
em.on('knex.migrate', async () => {
|
||||
const knex = require('../ivis-core/server/lib/knex');
|
||||
await knex.migrateExtension('mvis', './knex/migrations').latest();
|
||||
});
|
||||
|
||||
em.on('app.installAPIRoutes', app => {
|
||||
const embedApi = require('./routes/api/embed');
|
||||
app.use('/api', embedApi);
|
||||
});
|
||||
|
||||
require('../ivis-core/server/index');
|
||||
|
Loading…
Add table
Add a link
Reference in a new issue