change routee
This commit is contained in:
1 parent
2dc0d1faa6
commit
bd7bdf5867
16 files changed
+47
-41
No files matched your search
@@ -13,7 +13,7 @@
|
||||
window.Resources = {
|
||||
categories: {
|
||||
title: "Categories",
|
||||
endpoint: "/v1/admin/categories",
|
||||
endpoint: "/api/v1/admin/categories",
|
||||
listKey: "categories",
|
||||
searchable: true,
|
||||
statusToggle: true,
|
||||
@@ -36,19 +36,19 @@
|
||||
|
||||
"sub-categories": {
|
||||
title: "Sub-categories",
|
||||
endpoint: "/v1/admin/sub-categories",
|
||||
endpoint: "/api/v1/admin/sub-categories",
|
||||
listKey: "subCategory",
|
||||
searchable: true,
|
||||
statusToggle: true,
|
||||
// The list endpoint is scoped by category: GET /v1/admin/sub-categories/:categoryId
|
||||
// The list endpoint is scoped by category: GET /api/v1/admin/sub-categories/:categoryId
|
||||
parentFilter: {
|
||||
label: "Category",
|
||||
endpoint: "/v1/admin/categories",
|
||||
endpoint: "/api/v1/admin/categories",
|
||||
listKey: "categories",
|
||||
labelField: "name",
|
||||
},
|
||||
listUrl: (state) => "/v1/admin/sub-categories/" + state.parentId,
|
||||
getOneUrl: (id) => "/v1/admin/sub-categories/" + id + "/edit",
|
||||
listUrl: (state) => "/api/v1/admin/sub-categories/" + state.parentId,
|
||||
getOneUrl: (id) => "/api/v1/admin/sub-categories/" + id + "/edit",
|
||||
columns: [
|
||||
{ key: "Id", label: "ID", type: "id", sortKey: "id" },
|
||||
{ key: "name", label: "Name", type: "lang" },
|
||||
@@ -62,7 +62,7 @@
|
||||
type: "select",
|
||||
required: true,
|
||||
options: {
|
||||
endpoint: "/v1/admin/categories",
|
||||
endpoint: "/api/v1/admin/categories",
|
||||
listKey: "categories",
|
||||
valueField: "Id",
|
||||
labelField: "name",
|
||||
@@ -80,7 +80,7 @@
|
||||
|
||||
banners: {
|
||||
title: "Banners",
|
||||
endpoint: "/v1/admin/banner",
|
||||
endpoint: "/api/v1/admin/banner",
|
||||
listKey: "banners",
|
||||
searchable: true,
|
||||
columns: [
|
||||
@@ -119,7 +119,7 @@
|
||||
|
||||
news: {
|
||||
title: "News",
|
||||
endpoint: "/v1/admin/news",
|
||||
endpoint: "/api/v1/admin/news",
|
||||
listKey: "news",
|
||||
searchable: true,
|
||||
columns: [
|
||||
@@ -144,7 +144,7 @@
|
||||
|
||||
static: {
|
||||
title: "Static pages",
|
||||
endpoint: "/v1/admin/static",
|
||||
endpoint: "/api/v1/admin/static",
|
||||
listKey: "statics",
|
||||
searchable: true,
|
||||
columns: [
|
||||
@@ -184,7 +184,7 @@
|
||||
|
||||
currency: {
|
||||
title: "Currency",
|
||||
endpoint: "/v1/admin/currency",
|
||||
endpoint: "/api/v1/admin/currency",
|
||||
listKey: "currencies",
|
||||
searchable: true,
|
||||
columns: [
|
||||
|
||||
Reference in new issue
Block a user