text: import { Router } from "express"
  import middlewares from "../../../middlewares"
  
  const route = Router()
  
  export default (app) => {
    app.use("/variants", route)
  
    route.get("/", middlewares.wrap(require("./list-variants").default))
  
    return app
  }
  
  export const defaultRelations = ["product", "prices", "options"]
  
  export const defaultFields = [
    "id",
    "title",
    "product_id",
    "sku",
    "barcode",
    "ean",
    "upc",
    "inventory_quantity",
    "allow_backorder",
    "weight",
    "length",
    "height",
    "width",
    "hs_code",
    "origin_country",
    "mid_code",
    "material",
    "created_at",
    "updated_at",
    "metadata",
  ]
  
  export const allowedFields = [
    "id",
    "title",
    "product_id",
    "sku",
    "barcode",
    "ean",
    "upc",
    "inventory_quantity",
    "allow_backorder",
    "weight",
    "length",
    "height",
    "width",
    "hs_code",
    "origin_country",
    "mid_code",
    "material",
    "created_at",
    "updated_at",
    "metadata",
  ]
  
  export const allowedRelations = ["product", "prices", "options"]
  