From e141ea330a7a88223df67451b70d31577d9f6334 Mon Sep 17 00:00:00 2001 From: Methapon Metanipat Date: Thu, 5 Sep 2024 09:19:48 +0700 Subject: [PATCH] refactor: move file --- src/controllers/{product => }/product-controller.ts | 10 +++++----- .../{product => }/product-group-controller.ts | 8 ++++---- 2 files changed, 9 insertions(+), 9 deletions(-) rename src/controllers/{product => }/product-controller.ts (97%) rename src/controllers/{product => }/product-group-controller.ts (96%) diff --git a/src/controllers/product/product-controller.ts b/src/controllers/product-controller.ts similarity index 97% rename from src/controllers/product/product-controller.ts rename to src/controllers/product-controller.ts index 2246acf..bc62443 100644 --- a/src/controllers/product/product-controller.ts +++ b/src/controllers/product-controller.ts @@ -14,11 +14,11 @@ import { } from "tsoa"; import { Prisma, Status } from "@prisma/client"; -import prisma from "../../db"; -import minio, { presignedGetObjectIfExist } from "../../services/minio"; -import { RequestWithUser } from "../../interfaces/user"; -import HttpError from "../../interfaces/http-error"; -import HttpStatus from "../../interfaces/http-status"; +import prisma from "../db"; +import minio, { presignedGetObjectIfExist } from "../services/minio"; +import { RequestWithUser } from "../interfaces/user"; +import HttpError from "../interfaces/http-error"; +import HttpStatus from "../interfaces/http-status"; if (!process.env.MINIO_BUCKET) { throw Error("Require MinIO bucket."); diff --git a/src/controllers/product/product-group-controller.ts b/src/controllers/product-group-controller.ts similarity index 96% rename from src/controllers/product/product-group-controller.ts rename to src/controllers/product-group-controller.ts index 50ae4e0..12e1170 100644 --- a/src/controllers/product/product-group-controller.ts +++ b/src/controllers/product-group-controller.ts @@ -14,10 +14,10 @@ import { } from "tsoa"; import { Prisma, Status } from "@prisma/client"; -import prisma from "../../db"; -import { RequestWithUser } from "../../interfaces/user"; -import HttpError from "../../interfaces/http-error"; -import HttpStatus from "../../interfaces/http-status"; +import prisma from "../db"; +import { RequestWithUser } from "../interfaces/user"; +import HttpError from "../interfaces/http-error"; +import HttpStatus from "../interfaces/http-status"; type ProductGroupCreate = { name: string;