expose etag

This commit is contained in:
Lewis Crichton
2023-02-17 00:30:29 +00:00
parent fb44b39678
commit 5c7305b6d2
+1 -1
View File
@@ -40,7 +40,7 @@ function hash(data: string) {
return crypto.createHash("sha1").update(data).digest("hex");
}
await fastify.register(cors);
await fastify.register(cors, { exposedHeaders: ["ETag"] });
// #region request decoration & correction
fastify.decorateRequest("userId", null);