type: style

scope: services, interfaces

subject: Apply code formatting

- Correct indentation and formatting to match code style standards in multiple 'interfaces' and 'services' files.
- Also ensure lines at the end of the files.

Signed-off-by: Mathis <yidhra@tuta.io>
This commit is contained in:
2024-04-30 10:55:37 +02:00
parent cda313866f
commit 56bfd8cd0d
33 changed files with 1708 additions and 1176 deletions

View File

@@ -1,44 +1,52 @@
import express, {type Router} from "express";
import AdminGuard from "@validators/AdminGuard";
import UserGuard from "@validators/UserGuard";
import BrandController from "@controllers/brand.controller";
import CategoryController from "@controllers/category.controller";
import ModelController from "@controllers/model.controller";
import BrandController from "@controllers/brand.controller";
import AdminGuard from "@validators/AdminGuard";
import UserGuard from "@validators/UserGuard";
import express, { type Router } from "express";
const CatalogRouter: Router = express.Router();
//-- MODELS >>
CatalogRouter.route('/model/new').get(AdminGuard, ModelController.create)
CatalogRouter.route("/model/new").get(
AdminGuard,
ModelController.create,
);
CatalogRouter.route('/model/all').get(ModelController.getAll)
CatalogRouter.route("/model/all").get(ModelController.getAll);
CatalogRouter.route('/model/:modelSlug')
CatalogRouter.route("/model/:modelSlug")
.get(UserGuard, ModelController.getBySlug)
.patch(AdminGuard, ModelController.update)
.delete(AdminGuard, ModelController.delete)
.delete(AdminGuard, ModelController.delete);
//-- CATEGORY >>
CatalogRouter.route('/category/new').get(AdminGuard, CategoryController.create)
CatalogRouter.route("/category/new").get(
AdminGuard,
CategoryController.create,
);
CatalogRouter.route('/category/all').get(CategoryController.getAll)
CatalogRouter.route("/category/all").get(
CategoryController.getAll,
);
CatalogRouter.route('/category/:categorySlug')
CatalogRouter.route("/category/:categorySlug")
.get(UserGuard, CategoryController.getBySlug)
.patch(AdminGuard, CategoryController.update)
.delete(AdminGuard, CategoryController.delete)
.delete(AdminGuard, CategoryController.delete);
//-- BRAND >>
CatalogRouter.route('/brand/new').post(AdminGuard, BrandController.create)
CatalogRouter.route('/brand/all').get(BrandController.getAll)
CatalogRouter.route('/brand/:brandSlug')
CatalogRouter.route("/brand/new").post(
AdminGuard,
BrandController.create,
);
CatalogRouter.route("/brand/all").get(BrandController.getAll);
CatalogRouter.route("/brand/:brandSlug")
.get(UserGuard, BrandController.getBySlug)
.patch(AdminGuard, BrandController.update)
.delete(AdminGuard, BrandController.delete)
.delete(AdminGuard, BrandController.delete);
export default CatalogRouter;
export default CatalogRouter;