aboutsummaryrefslogtreecommitdiffstats
path: root/lib/app.js
diff options
context:
space:
mode:
authorAdam Soltys <[email protected]>2023-04-06 15:25:07 -0700
committerAdam Soltys <[email protected]>2023-04-06 15:25:07 -0700
commit99b72e143866d5cc62ba04847885070dc9a5c645 (patch)
treeabda08ae881b6e9bfff2ebbcf58d1409d7395fcf /lib/app.js
parent5083648dc113547c1c604e0c93ed0ee961f01ea3 (diff)
downloadcoinos-server-99b72e143866d5cc62ba04847885070dc9a5c645.tar.gz
coinos-server-99b72e143866d5cc62ba04847885070dc9a5c645.zip
prettier
Diffstat (limited to 'lib/app.js')
-rw-r--r--lib/app.js11
1 files changed, 7 insertions, 4 deletions
diff --git a/lib/app.js b/lib/app.js
index ae1687a4..acd04753 100644
--- a/lib/app.js
+++ b/lib/app.js
@@ -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;