Skip to content

Commit

Permalink
Merge pull request #9 from nzzdev/release-1.0.3
Browse files Browse the repository at this point in the history
Release 1.0.3
  • Loading branch information
fromdusttilldawn authored Nov 15, 2021
2 parents 4af8f1b + ac06a4b commit 63a2118
Show file tree
Hide file tree
Showing 8 changed files with 4,585 additions and 97 deletions.
3 changes: 0 additions & 3 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,6 @@ const Joi = require("joi");

const server = Hapi.server({
port: process.env.PORT || 3000,
routes: {
cors: true,
},
});
server.validator(Joi);

Expand Down
4,670 changes: 4,584 additions & 86 deletions package-lock.json

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "Q-scroll-graphic",
"version": "1.0.2",
"version": "1.0.3",
"description": "",
"main": "index.js",
"scripts": {
Expand Down
1 change: 0 additions & 1 deletion routes/dynamic-schema.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@ module.exports = {
validate: {
payload: Joi.object(),
},
cors: true,
},
handler: async function (request, h) {
const item = request.payload.item;
Expand Down
1 change: 0 additions & 1 deletion routes/fixtures/data.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@ module.exports = {
method: "GET",
options: {
tags: ["api"],
cors: true,
},
handler: (request, h) => {
return fixtureData;
Expand Down
1 change: 0 additions & 1 deletion routes/script.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@ module.exports = {
method: "GET",
path: "/script/{filename}.{hash}.{extension}",
options: {
cors: true,
files: {
relativeTo: path.join(__dirname, "/../scripts/")
}
Expand Down
1 change: 0 additions & 1 deletion routes/stylesheet.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@ module.exports = {
method: "GET",
path: "/stylesheet/{filename}.{hash}.{extension}",
options: {
cors: true,
files: {
relativeTo: path.join(__dirname, "/../styles/")
}
Expand Down
3 changes: 0 additions & 3 deletions test/e2e-tests.js
Original file line number Diff line number Diff line change
Expand Up @@ -20,9 +20,6 @@ before(async () => {
try {
server = Hapi.server({
port: process.env.PORT || 3000,
routes: {
cors: true,
},
});
server.validator(Joi);
await server.register(require("@hapi/inert"));
Expand Down

0 comments on commit 63a2118

Please sign in to comment.