{"size": 995, "ext": "js", "max_stars_repo_path": "packages/medusa/src/api/routes/admin/variants/index.js", "max_stars_repo_name": "ColdMeekly/medusa", "max_stars_repo_stars_event_min_datetime": "2022-01-26T15:06:20.000Z", "max_stars_repo_stars_event_max_datetime": "2022-01-26T15:06:20.000Z", "max_issues_repo_path": "packages/medusa/src/api/routes/admin/variants/index.js", "max_issues_repo_name": "ColdMeekly/medusa", "max_issues_repo_issues_event_min_datetime": "2021-11-07T20:21:12.000Z", "max_issues_repo_issues_event_max_datetime": "2021-11-07T20:21:12.000Z", "max_forks_repo_path": "packages/medusa/src/api/routes/admin/variants/index.js", "max_forks_repo_name": "sitedata/medusa", "max_forks_repo_forks_event_min_datetime": null, "max_forks_repo_forks_event_max_datetime": null}
{"max_stars_count": 1, "max_issues_count": 1, "max_forks_count": null, "avg_line_length": 15.7936507937, "max_line_length": 70, "alphanum_fraction": 0.6170854271}
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"]
