This commit is contained in:
Mr Swift
2024-03-09 18:00:53 +03:30
parent 88f31bd213
commit ffdd93e0d4
3 changed files with 67 additions and 5 deletions
+4 -3
View File
@@ -1,9 +1,10 @@
const { body, validationResult } = require('express-validator')
const Brand = require("../models/Brand");
const { checkValidations } = require("../plugins/controllersHelperFunctions")
const { body, validationResult } = require('express-validator')
const { _sr } = require("../plugins/serverResponses")
const maxAttachmentSize = 2048
const _faSr = _sr.fa;
/* eslint-disable spaced-comment */
//@desc Create a brand
//@route POST /api/brands/
@@ -59,7 +60,7 @@ const createbrand = [
//@route GET /api/brands/
//@access Public
const getbrands = async (req, res) => {
const brand = await Brand.find().limit(8);
const brand = await Brand.find();
res.status(200).json(brand);
};