UNPKG

cluedin-widget

Version:

This project contains all the pages needed for browsing entities and searching them. The aim is to replace the CluedIn.Webapp project with this one when all the pages ( including the Admin page ) will be ported to REACT.

17 lines (14 loc) 403 B
var express = require( 'express' ); module.exports = ( PORT ) => { const apiServer = express(); apiServer.get( '/api/hello', function( req, res ) { res.send( JSON.stringify( { "hello": "world", "data": [ { "name": "hello" }, { "name": "world" } ] } ) ); } ); apiServer.listen( PORT, 'localhost' ); };