Skip to content

Commit

Permalink
style: ordering
Browse files Browse the repository at this point in the history
  • Loading branch information
SeanCassiere committed Jun 23, 2024
1 parent 23310d4 commit 184a44d
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,10 +11,10 @@ import { serveStatic } from "@hono/node-server/serve-static";

import v2Router from "@/routers/v2";
import docsRouter from "@/routers/docs";
import { env } from "@/config/env";

import type { ServerContext } from "@/types/hono";
import { transformOpenapiYmlDoc, openapiYmlVersioner } from "@/utils/openapi-docs";
import { env } from "@/config/env";
import type { ServerContext } from "@/types/hono";

const packageJson = require("../package.json");

Expand All @@ -29,7 +29,7 @@ const limiter = rateLimiter({
windowMs: 15 * 60 * 1000, // 15 minutes
limit: 100,
standardHeaders: "draft-6",
keyGenerator: (c) => c.req.header("x-service-id") ?? c.req.header("x-forwarded-for") ?? "",
keyGenerator: (c) => c.req.header("x-app-service-id") ?? c.req.header("x-forwarded-for") ?? "",
});
app.use(limiter);

Expand Down

0 comments on commit 184a44d

Please sign in to comment.