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;