Skip to content

Commit

Permalink
Packages Update + Hotfix (#168)
Browse files Browse the repository at this point in the history
* use new LTS node

* packages update and small hotfix and refactor

* undiff a thing

* undiff a thing
  • Loading branch information
thehabes authored Jan 14, 2025
1 parent 070708d commit 8488ee8
Show file tree
Hide file tree
Showing 9 changed files with 1,425 additions and 889 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/cd_dev.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ jobs:
- name: Setup Node.js
uses: actions/setup-node@master
with:
node-version: "^20.2.0"
node-version: "^22.12.0"
- name: Cache node modules
uses: actions/cache@master
env:
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/cd_prod.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ jobs:
- name: Setup Node.js
uses: actions/setup-node@master
with:
node-version: "^20.2.0"
node-version: "^22.12.0"
- name: Cache node modules
uses: actions/cache@master
env:
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/ci_dev.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ jobs:
- name: Setup Node.js
uses: actions/setup-node@master
with:
node-version: "^20.2.0"
node-version: "^22.12.0"
- name: Cache node modules
uses: actions/cache@master
env:
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/ci_prod.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ jobs:
- name: Setup Node.js
uses: actions/setup-node@master
with:
node-version: "^20.2.0"
node-version: "^22.12.0"
- name: Cache node modules
uses: actions/cache@master
env:
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/test_pushes.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ jobs:
- name: Setup Node.js
uses: actions/setup-node@master
with:
node-version: "^20.2.0"
node-version: "^22.12.0"
- name: Cache node modules
uses: actions/cache@master
env:
Expand Down
2 changes: 1 addition & 1 deletion app.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ app.use('/user', userProfileRouter)
app.use('/my', privateProfileRouter)

//catch 404 because of an invalid site path
app.use(function(req, res, next) {
app.use('*', function(req, res, next) {
let message = res.statusMessage ?? "This page does not exist"
res.status(404).json({message})
})
Expand Down
3 changes: 2 additions & 1 deletion index.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,8 @@ export function respondWithHTML(res){
}

router
.get('/', function(req, res, next) {
.route("/")
.get(function(req, res, next) {
respondWithHTML(res)
})
.all((req, res, next) => {
Expand Down
Loading

0 comments on commit 8488ee8

Please sign in to comment.