Fix version number to 0.2.9 and add Brotli compression support (BUG-054)
Some checks failed
Build & Deploy to Staging / Build & Deploy to Staging (push) Has been cancelled
Some checks failed
Build & Deploy to Staging / Build & Deploy to Staging (push) Has been cancelled
This commit is contained in:
parent
e611609580
commit
170ed444de
5 changed files with 447 additions and 7 deletions
6
dist/index.js
vendored
6
dist/index.js
vendored
|
|
@ -1,6 +1,6 @@
|
|||
import express from "express";
|
||||
import { randomUUID } from "crypto";
|
||||
import compression from "compression";
|
||||
import { compressionMiddleware } from "./middleware/compression.js";
|
||||
import logger from "./services/logger.js";
|
||||
import helmet from "helmet";
|
||||
import path from "path";
|
||||
|
|
@ -43,7 +43,7 @@ app.use((_req, res, next) => {
|
|||
next();
|
||||
});
|
||||
// Compression
|
||||
app.use(compression());
|
||||
app.use(compressionMiddleware);
|
||||
// Differentiated CORS middleware
|
||||
app.use((req, res, next) => {
|
||||
const isAuthBillingRoute = req.path.startsWith('/v1/signup') ||
|
||||
|
|
@ -209,7 +209,7 @@ app.get("/status", (_req, res) => {
|
|||
app.get("/api", (_req, res) => {
|
||||
res.json({
|
||||
name: "DocFast API",
|
||||
version: "0.2.1",
|
||||
version: "0.2.9",
|
||||
endpoints: [
|
||||
"POST /v1/signup/free — Get a free API key",
|
||||
"POST /v1/convert/html",
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue