Skip to content

Commit

Permalink
upgrade to fastify 4 (#215)
Browse files Browse the repository at this point in the history
  • Loading branch information
rluvaton authored Apr 11, 2023
1 parent ac4f805 commit ec769e9
Show file tree
Hide file tree
Showing 4 changed files with 469 additions and 167 deletions.
2 changes: 1 addition & 1 deletion bin/agendash-standalone-fastify.js
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ fastify.register(
})
);

fastify.listen(program.port, function () {
fastify.listen({ port: program.port }, function () {
console.log(
`Agendash started http://localhost:${program.port}${program.path}`
);
Expand Down
2 changes: 1 addition & 1 deletion lib/middlewares/fastify.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ const csp = require("../csp");
module.exports = (agendash) => (instance, opts, done) => {
const { api, requeueJobs, deleteJobs, createJob } = agendash;

instance.register(require("fastify-static"), {
instance.register(require("@fastify/static"), {
root: path.join(__dirname, "../../public"),
});

Expand Down
Loading

0 comments on commit ec769e9

Please sign in to comment.