From 288ebacaa550cbfdb2adea8f6600383603aefa9e Mon Sep 17 00:00:00 2001 From: SeanCassiere <33615041+SeanCassiere@users.noreply.github.com> Date: Mon, 24 Jun 2024 07:51:56 +1200 Subject: [PATCH] feat: move the routers into their own folder --- src/index.ts | 2 +- src/{ => routers}/v2/index.ts | 0 src/{ => routers}/v2/logging/index.ts | 0 src/{ => routers}/v2/logging/schemas.ts | 0 src/{ => routers}/v2/services/index.ts | 0 src/{ => routers}/v2/services/schemas.ts | 0 6 files changed, 1 insertion(+), 1 deletion(-) rename src/{ => routers}/v2/index.ts (100%) rename src/{ => routers}/v2/logging/index.ts (100%) rename src/{ => routers}/v2/logging/schemas.ts (100%) rename src/{ => routers}/v2/services/index.ts (100%) rename src/{ => routers}/v2/services/schemas.ts (100%) diff --git a/src/index.ts b/src/index.ts index 64922de..ff3b116 100644 --- a/src/index.ts +++ b/src/index.ts @@ -8,7 +8,7 @@ import { logger } from "hono/logger"; import { rateLimiter } from "hono-rate-limiter"; import { serve } from "@hono/node-server"; -import v2Router from "@/v2"; +import v2Router from "@/routers/v2"; import { env } from "@/config/env"; import type { ServerContext } from "@/types/hono"; diff --git a/src/v2/index.ts b/src/routers/v2/index.ts similarity index 100% rename from src/v2/index.ts rename to src/routers/v2/index.ts diff --git a/src/v2/logging/index.ts b/src/routers/v2/logging/index.ts similarity index 100% rename from src/v2/logging/index.ts rename to src/routers/v2/logging/index.ts diff --git a/src/v2/logging/schemas.ts b/src/routers/v2/logging/schemas.ts similarity index 100% rename from src/v2/logging/schemas.ts rename to src/routers/v2/logging/schemas.ts diff --git a/src/v2/services/index.ts b/src/routers/v2/services/index.ts similarity index 100% rename from src/v2/services/index.ts rename to src/routers/v2/services/index.ts diff --git a/src/v2/services/schemas.ts b/src/routers/v2/services/schemas.ts similarity index 100% rename from src/v2/services/schemas.ts rename to src/routers/v2/services/schemas.ts