Skip to content

Commit

Permalink
Add missing client code & service-worker template parts.
Browse files Browse the repository at this point in the history
resolves #18 resolves #19 resolves #20
  • Loading branch information
Poikilos committed Dec 5, 2020
1 parent 3150257 commit e088f41
Show file tree
Hide file tree
Showing 9 changed files with 12 additions and 12 deletions.
2 changes: 1 addition & 1 deletion controllers/auth.controller.js
Original file line number Diff line number Diff line change
Expand Up @@ -108,4 +108,4 @@ exports.signin = (req, res) => {
});
};

// (BezKoder, 2019)
// (BezKoder, 2019a)
2 changes: 1 addition & 1 deletion controllers/user.controller.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,4 +14,4 @@ exports.moderatorBoard = (req, res) => {
res.status(200).send("Moderator Content.");
};

// (BezKoder, 2019)
// (BezKoder, 2019a)
2 changes: 1 addition & 1 deletion middlewares/authJwt.js
Original file line number Diff line number Diff line change
Expand Up @@ -89,4 +89,4 @@ const authJwt = {
};
module.exports = authJwt;

// (BezKoder, 2019)
// (BezKoder, 2019a)
2 changes: 1 addition & 1 deletion middlewares/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,4 +6,4 @@ module.exports = {
verifySignUp
};

// (BezKoder, 2019)
// (BezKoder, 2019a)
2 changes: 1 addition & 1 deletion middlewares/verifySignUp.js
Original file line number Diff line number Diff line change
Expand Up @@ -58,4 +58,4 @@ const verifySignUp = {

module.exports = verifySignUp;

// (BezKoder, 2019)
// (BezKoder, 2019a)
2 changes: 1 addition & 1 deletion models/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,4 +12,4 @@ db.ROLES = ["user", "admin", "moderator"];

module.exports = db;

// (BezKoder, 2019)
// (BezKoder, 2019a)
2 changes: 1 addition & 1 deletion routes/auth.routes.js
Original file line number Diff line number Diff line change
Expand Up @@ -22,4 +22,4 @@ module.exports = function(app) {
app.post("/api/auth/signin", controller.signin);
};

// (BezKoder, 2019)
// (BezKoder, 2019a)
2 changes: 1 addition & 1 deletion routes/user.routes.js
Original file line number Diff line number Diff line change
Expand Up @@ -27,4 +27,4 @@ module.exports = function(app) {
);
};

// (BezKoder, 2019)
// (BezKoder, 2019a)
8 changes: 4 additions & 4 deletions server.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ const app = express();

var corsOptions = {
origin: "http://localhost:3000",
} // (BezKoder, 2019)
} // (BezKoder, 2019a)

app.use(cors(corsOptions));

Expand All @@ -24,7 +24,7 @@ const dbConfig = require('./config/db.config'); // automatically imported
// connect to the database
db.mongoose.connect(`mongodb://${dbConfig.HOST}:${dbConfig.PORT}/${dbConfig.DB}`, {
useNewUrlParser: true,
useUnifiedTopology: true, // (BezKoder, 2019)
useUnifiedTopology: true, // (BezKoder, 2019a)
})
.then(() => {
console.log('MongoDB is successfully connected.');
Expand All @@ -38,7 +38,7 @@ db.mongoose.connect(`mongodb://${dbConfig.HOST}:${dbConfig.PORT}/${dbConfig.DB}`
app.use(bodyParser.json());

// parse requests of content-type - application/x-www-form-urlencoded
// as per BezKoder (2019).
// as per BezKoder (2019a).
app.use(bodyParser.urlencoded({ extended: true }));
/* app.use('/api', routes);
Expand Down Expand Up @@ -93,4 +93,4 @@ function initial() {
});
}
});
} // (BezKoder, 2019)
} // (BezKoder, 2019a)

0 comments on commit e088f41

Please sign in to comment.