Skip to content
This repository has been archived by the owner on Oct 3, 2019. It is now read-only.

Commit

Permalink
Merge branch 'master' into 37_visualizar_escalas
Browse files Browse the repository at this point in the history
  • Loading branch information
EzequielDeOliveira authored May 12, 2018
2 parents f83ffb2 + 235a581 commit 02c0db0
Show file tree
Hide file tree
Showing 6 changed files with 11 additions and 3 deletions.
2 changes: 1 addition & 1 deletion Schedule/Client/api.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@

module.exports = function api(options) {
currentWeekNumber = require('current-week-number');

Expand Down Expand Up @@ -270,4 +271,3 @@ module.exports = function api(options) {



}
2 changes: 2 additions & 0 deletions Schedule/Client/client_schedule.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
var express = require('express');

var bodyParser = require('body-parser')
var seneca = require('seneca');
var senecaWeb = require('seneca-web');
Expand All @@ -22,6 +23,7 @@ var strategy = new JwtStrategy(jwtOptions, async function(payload, next){
Passport.use(strategy)

Passport.serializeUser((schedule, cb) => {

cb(null, schedule)
})

Expand Down
2 changes: 2 additions & 0 deletions Schedule/Client/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,11 +10,13 @@
"author": "",
"license": "MIT",
"dependencies": {

"bcrypt": "^2.0.1",
"body-parser": "1.15.2",
"current-week-number": "^1.0.7",
"express": "^4.14.0",
"jsonwebtoken": "^8.2.0",

"mongoose": "^4.6.1",
"morgan": "^1.9.0",
"nodemon": "^1.10.2",
Expand Down
2 changes: 2 additions & 0 deletions Schedule/Client/test/schedule.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -22,4 +22,6 @@ describe('Routing', function() {
});
});
});

})

5 changes: 3 additions & 2 deletions Schedule/Server/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,10 @@
"name": "node-app",
"version": "1.0.0",
"description": "",
"main": "client_sector.js",

"main": "app.js",
"scripts": {
"start": "nodemon client_sector.js",
"start": "nodemon schedule.js",
"test": "./node_modules/.bin/mocha --reporter spec"
},
"author": "",
Expand Down
1 change: 1 addition & 0 deletions Schedule/Server/schedule.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@


var seneca = require('seneca');
var currentWeekNumber = require('current-week-number');

Expand Down

0 comments on commit 02c0db0

Please sign in to comment.