Skip to content

Commit

Permalink
fix(avoid ui): avoid ui audit (#70)
Browse files Browse the repository at this point in the history
* fix(avoid ui): avoid ui audit

avoid ui audit

* refactor(lint): lint

* chore(pipeline): move timezone to unit-tests stage
  • Loading branch information
manorlh authored and NivLipetz committed Feb 25, 2019
1 parent cac1689 commit 92d4f7d
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 3 deletions.
6 changes: 3 additions & 3 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,9 @@ jobs:
- node_modules
unit-tests:
docker:
- image: circleci/node:8
- image: circleci/node:8
environment:
TZ: "Asia/Jerusalem"
steps:
- checkout
- setup_remote_docker:
Expand All @@ -31,8 +33,6 @@ jobs:
integration-tests:
docker:
- image: circleci/node:8
environment:
TZ: "Asia/Jerusalem"
- image: circleci/cassandra:3.10
environment:
MAX_HEAP_SIZE: 2048m
Expand Down
5 changes: 5 additions & 0 deletions src/app.js
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,11 @@ module.exports = () => {
res.header('Access-Control-Allow-Methods', '*');
next();
});
// all root request are suppose to be the ui , so we put the route before the audit to avoid audit.
app.use(express.static('./ui/dist'));
app.use('/predator', function (req, res, next) {
res.sendFile(path.resolve('ui/dist/index.html'));
});

app.use(bodyParser.json());

Expand Down

0 comments on commit 92d4f7d

Please sign in to comment.