From 06efaa1d04eb5468d3146a656d32ecd262e43d82 Mon Sep 17 00:00:00 2001 From: Ethan Niser Date: Thu, 14 Sep 2023 16:03:43 -0500 Subject: [PATCH] rename to controller --- bun.lockb | Bin 122923 -> 122923 bytes src/{handlers => controllers}/auth.tsx | 0 src/{handlers => controllers}/index.ts | 4 ++-- src/{handlers => controllers}/todos.tsx | 0 4 files changed, 2 insertions(+), 2 deletions(-) rename src/{handlers => controllers}/auth.tsx (100%) rename src/{handlers => controllers}/index.ts (54%) rename src/{handlers => controllers}/todos.tsx (100%) diff --git a/bun.lockb b/bun.lockb index 0a8ca112e5a76b008b4c6a91116ab576e54fa5a0..2f5f0fb6dd03b80ef9e7c7863446b129b8b20dc9 100755 GIT binary patch delta 45 tcmZ2|fPM7=_6;d71>!>);6Q+hDPnWUOVf0A#yA5#BR!+-8v+=s`vEZM4AuYu delta 45 qcmZ2|fPM7=_6;d71suW{;NSrx`;5&cFHO_gnIK}@Hv}+N_X7Yp2@HP# diff --git a/src/handlers/auth.tsx b/src/controllers/auth.tsx similarity index 100% rename from src/handlers/auth.tsx rename to src/controllers/auth.tsx diff --git a/src/handlers/index.ts b/src/controllers/index.ts similarity index 54% rename from src/handlers/index.ts rename to src/controllers/index.ts index f12a96c..3a0afe5 100644 --- a/src/handlers/index.ts +++ b/src/controllers/index.ts @@ -1,7 +1,7 @@ import Elysia from "elysia"; -import { todosService } from "./todos"; +import { todosService as todosController } from "./todos"; export const api = new Elysia({ name: "@app/api", prefix: "/api", -}).use(todosService); +}).use(todosController); diff --git a/src/handlers/todos.tsx b/src/controllers/todos.tsx similarity index 100% rename from src/handlers/todos.tsx rename to src/controllers/todos.tsx