You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
12 lines
361 B
12 lines
361 B
//app.js
|
|
var express = require('express')
|
|
var path = require('path')
|
|
var app = express()
|
|
|
|
app.use(express.static(path.join(__dirname, '../packages/web/examples/tis-ui')))
|
|
app.use('/lib', express.static(path.join(__dirname, '../packages/web/lib'), {
|
|
setHeaders: (res, path, stat) => {
|
|
res.set('Access-Control-Allow-Origin', '*');
|
|
}
|
|
}));
|
|
app.listen(9999);
|