cluedin-widget
Version:
This is the project for creating and managing widgets in CluedIn.
25 lines (18 loc) • 616 B
JavaScript
var express = require( 'express' );
var path = require( 'path' );
var app = express();
// view engine setup
app.set( 'views', path.join( __dirname, '/views' ) );
app.set( 'view engine', 'jade' );
app.use( '/cluedin', express.static( path.join( __dirname, '/../../dist' ) ) );
//console.log( path.join( __dirname, '/../dist ' ) );
//app.use( '/cluedin', express.static( '/../dist ' ) );
app.get( '/*', function( req, res ) {
res.render( 'index' );
} );
app.use( function( req, res, next ) {
var err = new Error( 'Not Found' );
err.status = 404;
next( err );
} );
module.exports = app;