Skip to content
This repository has been archived by the owner on Apr 17, 2023. It is now read-only.

Disable sync security (temp) #94

Merged
merged 1 commit into from
Aug 23, 2017
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion demo/server/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
"clean": "del coverage_report src/*.js src/**/*.js src/*.map src/**/*.map test/**/*.js test/**/*.map",
"build": "tsc",
"start": "ts-node src/index.ts",
"startDebug": "ts-node --inspect -debug-brk src/index.ts",
"startDebug": "ts-node --inspect --debug-brk src/index.ts",
"watch": "nodemon",
"test": "nyc mocha"
},
Expand Down
2 changes: 1 addition & 1 deletion demo/server/src/modules/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ function setupKeycloakSecurity(app: express.Express) {
function syncSetup(app: express.Express) {
// Mount api
const role = config.security.userRole;
app.use('/sync', securityMiddleware.protect(role));
// app.use('/sync', securityMiddleware.protect(role));
app.use('/sync', syncRouter);
// Connect sync
return syncConnector().then(function(connections: { mongo: Db, redis: any }) {
Expand Down