feature/routing
updates routing in setupProxy config to serve /datasets and /jobs endpoints
const proxy = require('http-proxy-middleware')
const express = require('express')
-var apiOptions = {
+const apiOptions = {
target: `http://${process.env.MARQUEZ_HOST}:${process.env.MARQUEZ_PORT}/`
}
+const app = express()
+const path = __dirname + '/dist'
-var app = express()
-
-const path = __dirname + '/dist/'
-app.use(express.static(path))
+app.use('/', express.static(path))
+app.use('/datasets/:name', express.static(path))
+app.use('/jobs/:name', express.static(path))
app.use(proxy('/api/v1', apiOptions))
app.listen(3000, function() {
