diff options
| author | Adam Soltys <[email protected]> | 2023-04-06 15:25:07 -0700 |
|---|---|---|
| committer | Adam Soltys <[email protected]> | 2023-04-06 15:25:07 -0700 |
| commit | 99b72e143866d5cc62ba04847885070dc9a5c645 (patch) | |
| tree | abda08ae881b6e9bfff2ebbcf58d1409d7395fcf /lib/app.js | |
| parent | 5083648dc113547c1c604e0c93ed0ee961f01ea3 (diff) | |
| download | coinos-server-99b72e143866d5cc62ba04847885070dc9a5c645.tar.gz coinos-server-99b72e143866d5cc62ba04847885070dc9a5c645.zip | |
prettier
Diffstat (limited to 'lib/app.js')
| -rw-r--r-- | lib/app.js | 11 |
1 files changed, 7 insertions, 4 deletions
@@ -15,11 +15,11 @@ import { socketServer } from "$lib/sockets"; const app = fastify({ logger: pino(), disableRequestLogging: true, - maxParamLength: 500, + maxParamLength: 500 }); app.register(fastifySecureSession, { - key: Buffer.from(config.jwt, "hex"), + key: Buffer.from(config.jwt, "hex") }); app.register(fastifyPassport.initialize()); @@ -31,7 +31,7 @@ app.register(fastifyMultipart); app.register(fastifyStatic, { root: path.join("/app/data/uploads"), - prefix: "/public/", + prefix: "/public/" }); app.register(fastifyWs); @@ -46,7 +46,10 @@ app.setErrorHandler((error, request, reply) => { }); app.setNotFoundHandler((request, reply) => { - reply.code(404).type("text/html").send("Not Found"); + reply + .code(404) + .type("text/html") + .send("Not Found"); }); export default app; |
