@stacksjs/defaults 0.70.293 → 0.70.295
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/app/Models/Content/Author.ts +5 -0
- package/app/Models/Content/Page.ts +5 -0
- package/app/Models/Content/Post.ts +5 -0
- package/app/Models/Release.ts +5 -0
- package/app/Models/Tag.ts +5 -0
- package/app/Models/commerce/Category.ts +5 -0
- package/app/Models/commerce/LoyaltyReward.ts +5 -0
- package/app/Models/commerce/Manufacturer.ts +5 -0
- package/app/Models/commerce/Product.ts +5 -0
- package/app/Models/commerce/ProductUnit.ts +5 -0
- package/app/Models/commerce/ProductVariant.ts +5 -0
- package/app/Models/commerce/ShippingMethod.ts +5 -0
- package/app/Models/commerce/ShippingRate.ts +5 -0
- package/app/Models/commerce/ShippingZone.ts +5 -0
- package/app/Models/commerce/TaxRate.ts +5 -0
- package/ide/vscode/package.json +1 -1
- package/package.json +1 -1
|
@@ -32,6 +32,11 @@ export default defineModel({
|
|
|
32
32
|
// (content/blog/*.md); this model backs the CMS dashboard only.
|
|
33
33
|
|
|
34
34
|
useApi: {
|
|
35
|
+
// Public catalog: anyone may browse, only authenticated callers may
|
|
36
|
+
// write. Declared explicitly because the trait now defaults BOTH sides to
|
|
37
|
+
// `auth` — an undeclared read route is how a customer list leaks
|
|
38
|
+
// (stacksjs/stacks#2224). Behaviour here is unchanged.
|
|
39
|
+
middleware: { read: [], write: ['auth'] },
|
|
35
40
|
uri: 'authors',
|
|
36
41
|
|
|
37
42
|
routes: ['index', 'store', 'show', 'update', 'destroy'],
|
|
@@ -17,6 +17,11 @@ export default defineModel({
|
|
|
17
17
|
filterable: ['template'],
|
|
18
18
|
},
|
|
19
19
|
useApi: {
|
|
20
|
+
// Public catalog: anyone may browse, only authenticated callers may
|
|
21
|
+
// write. Declared explicitly because the trait now defaults BOTH sides to
|
|
22
|
+
// `auth` — an undeclared read route is how a customer list leaks
|
|
23
|
+
// (stacksjs/stacks#2224). Behaviour here is unchanged.
|
|
24
|
+
middleware: { read: [], write: ['auth'] },
|
|
20
25
|
uri: 'pages',
|
|
21
26
|
routes: ['index', 'store', 'show', 'update', 'destroy'],
|
|
22
27
|
},
|
|
@@ -24,6 +24,11 @@ export default defineModel({
|
|
|
24
24
|
// trait targets the real `commentables` table, activating it is correct.
|
|
25
25
|
commentable: true,
|
|
26
26
|
useApi: {
|
|
27
|
+
// Public catalog: anyone may browse, only authenticated callers may
|
|
28
|
+
// write. Declared explicitly because the trait now defaults BOTH sides to
|
|
29
|
+
// `auth` — an undeclared read route is how a customer list leaks
|
|
30
|
+
// (stacksjs/stacks#2224). Behaviour here is unchanged.
|
|
31
|
+
middleware: { read: [], write: ['auth'] },
|
|
27
32
|
uri: 'posts',
|
|
28
33
|
routes: ['index', 'store', 'show', 'update', 'destroy'],
|
|
29
34
|
},
|
package/app/Models/Release.ts
CHANGED
|
@@ -18,6 +18,11 @@ export default defineModel({
|
|
|
18
18
|
},
|
|
19
19
|
|
|
20
20
|
useApi: {
|
|
21
|
+
// Public catalog: anyone may browse, only authenticated callers may
|
|
22
|
+
// write. Declared explicitly because the trait now defaults BOTH sides to
|
|
23
|
+
// `auth` — an undeclared read route is how a customer list leaks
|
|
24
|
+
// (stacksjs/stacks#2224). Behaviour here is unchanged.
|
|
25
|
+
middleware: { read: [], write: ['auth'] },
|
|
21
26
|
uri: 'releases',
|
|
22
27
|
routes: ['index', 'show'],
|
|
23
28
|
},
|
package/app/Models/Tag.ts
CHANGED
|
@@ -33,6 +33,11 @@ export default defineModel({
|
|
|
33
33
|
fixtures: tagNames.map(name => ({ name, slug: name })),
|
|
34
34
|
},
|
|
35
35
|
useApi: {
|
|
36
|
+
// Public catalog: anyone may browse, only authenticated callers may
|
|
37
|
+
// write. Declared explicitly because the trait now defaults BOTH sides to
|
|
38
|
+
// `auth` — an undeclared read route is how a customer list leaks
|
|
39
|
+
// (stacksjs/stacks#2224). Behaviour here is unchanged.
|
|
40
|
+
middleware: { read: [], write: ['auth'] },
|
|
36
41
|
uri: 'tags',
|
|
37
42
|
routes: ['index', 'store', 'show', 'update', 'destroy'],
|
|
38
43
|
},
|
|
@@ -23,6 +23,11 @@ export default defineModel({
|
|
|
23
23
|
},
|
|
24
24
|
|
|
25
25
|
useApi: {
|
|
26
|
+
// Public catalog: anyone may browse, only authenticated callers may
|
|
27
|
+
// write. Declared explicitly because the trait now defaults BOTH sides to
|
|
28
|
+
// `auth` — an undeclared read route is how a customer list leaks
|
|
29
|
+
// (stacksjs/stacks#2224). Behaviour here is unchanged.
|
|
30
|
+
middleware: { read: [], write: ['auth'] },
|
|
26
31
|
uri: 'product-categories',
|
|
27
32
|
},
|
|
28
33
|
|
|
@@ -22,6 +22,11 @@ export default defineModel({
|
|
|
22
22
|
},
|
|
23
23
|
|
|
24
24
|
useApi: {
|
|
25
|
+
// Public catalog: anyone may browse, only authenticated callers may
|
|
26
|
+
// write. Declared explicitly because the trait now defaults BOTH sides to
|
|
27
|
+
// `auth` — an undeclared read route is how a customer list leaks
|
|
28
|
+
// (stacksjs/stacks#2224). Behaviour here is unchanged.
|
|
29
|
+
middleware: { read: [], write: ['auth'] },
|
|
25
30
|
uri: 'loyalty-rewards',
|
|
26
31
|
},
|
|
27
32
|
|
|
@@ -22,6 +22,11 @@ export default defineModel({
|
|
|
22
22
|
},
|
|
23
23
|
|
|
24
24
|
useApi: {
|
|
25
|
+
// Public catalog: anyone may browse, only authenticated callers may
|
|
26
|
+
// write. Declared explicitly because the trait now defaults BOTH sides to
|
|
27
|
+
// `auth` — an undeclared read route is how a customer list leaks
|
|
28
|
+
// (stacksjs/stacks#2224). Behaviour here is unchanged.
|
|
29
|
+
middleware: { read: [], write: ['auth'] },
|
|
25
30
|
uri: 'product-manufacturers',
|
|
26
31
|
},
|
|
27
32
|
|
|
@@ -22,6 +22,11 @@ export default defineModel({
|
|
|
22
22
|
},
|
|
23
23
|
|
|
24
24
|
useApi: {
|
|
25
|
+
// Public catalog: anyone may browse, only authenticated callers may
|
|
26
|
+
// write. Declared explicitly because the trait now defaults BOTH sides to
|
|
27
|
+
// `auth` — an undeclared read route is how a customer list leaks
|
|
28
|
+
// (stacksjs/stacks#2224). Behaviour here is unchanged.
|
|
29
|
+
middleware: { read: [], write: ['auth'] },
|
|
25
30
|
uri: 'products',
|
|
26
31
|
},
|
|
27
32
|
|
|
@@ -22,6 +22,11 @@ export default defineModel({
|
|
|
22
22
|
},
|
|
23
23
|
|
|
24
24
|
useApi: {
|
|
25
|
+
// Public catalog: anyone may browse, only authenticated callers may
|
|
26
|
+
// write. Declared explicitly because the trait now defaults BOTH sides to
|
|
27
|
+
// `auth` — an undeclared read route is how a customer list leaks
|
|
28
|
+
// (stacksjs/stacks#2224). Behaviour here is unchanged.
|
|
29
|
+
middleware: { read: [], write: ['auth'] },
|
|
25
30
|
uri: 'product-units',
|
|
26
31
|
},
|
|
27
32
|
|
|
@@ -22,6 +22,11 @@ export default defineModel({
|
|
|
22
22
|
},
|
|
23
23
|
|
|
24
24
|
useApi: {
|
|
25
|
+
// Public catalog: anyone may browse, only authenticated callers may
|
|
26
|
+
// write. Declared explicitly because the trait now defaults BOTH sides to
|
|
27
|
+
// `auth` — an undeclared read route is how a customer list leaks
|
|
28
|
+
// (stacksjs/stacks#2224). Behaviour here is unchanged.
|
|
29
|
+
middleware: { read: [], write: ['auth'] },
|
|
25
30
|
uri: 'product-variants',
|
|
26
31
|
},
|
|
27
32
|
|
|
@@ -22,6 +22,11 @@ export default defineModel({
|
|
|
22
22
|
},
|
|
23
23
|
|
|
24
24
|
useApi: {
|
|
25
|
+
// Public catalog: anyone may browse, only authenticated callers may
|
|
26
|
+
// write. Declared explicitly because the trait now defaults BOTH sides to
|
|
27
|
+
// `auth` — an undeclared read route is how a customer list leaks
|
|
28
|
+
// (stacksjs/stacks#2224). Behaviour here is unchanged.
|
|
29
|
+
middleware: { read: [], write: ['auth'] },
|
|
25
30
|
uri: 'shipping-methods',
|
|
26
31
|
},
|
|
27
32
|
|
|
@@ -22,6 +22,11 @@ export default defineModel({
|
|
|
22
22
|
},
|
|
23
23
|
|
|
24
24
|
useApi: {
|
|
25
|
+
// Public catalog: anyone may browse, only authenticated callers may
|
|
26
|
+
// write. Declared explicitly because the trait now defaults BOTH sides to
|
|
27
|
+
// `auth` — an undeclared read route is how a customer list leaks
|
|
28
|
+
// (stacksjs/stacks#2224). Behaviour here is unchanged.
|
|
29
|
+
middleware: { read: [], write: ['auth'] },
|
|
25
30
|
uri: 'shipping-rates',
|
|
26
31
|
},
|
|
27
32
|
|
|
@@ -22,6 +22,11 @@ export default defineModel({
|
|
|
22
22
|
},
|
|
23
23
|
|
|
24
24
|
useApi: {
|
|
25
|
+
// Public catalog: anyone may browse, only authenticated callers may
|
|
26
|
+
// write. Declared explicitly because the trait now defaults BOTH sides to
|
|
27
|
+
// `auth` — an undeclared read route is how a customer list leaks
|
|
28
|
+
// (stacksjs/stacks#2224). Behaviour here is unchanged.
|
|
29
|
+
middleware: { read: [], write: ['auth'] },
|
|
25
30
|
uri: 'shipping-zones',
|
|
26
31
|
},
|
|
27
32
|
|
|
@@ -22,6 +22,11 @@ export default defineModel({
|
|
|
22
22
|
},
|
|
23
23
|
|
|
24
24
|
useApi: {
|
|
25
|
+
// Public catalog: anyone may browse, only authenticated callers may
|
|
26
|
+
// write. Declared explicitly because the trait now defaults BOTH sides to
|
|
27
|
+
// `auth` — an undeclared read route is how a customer list leaks
|
|
28
|
+
// (stacksjs/stacks#2224). Behaviour here is unchanged.
|
|
29
|
+
middleware: { read: [], write: ['auth'] },
|
|
25
30
|
uri: 'tax-rates',
|
|
26
31
|
},
|
|
27
32
|
|
package/ide/vscode/package.json
CHANGED
package/package.json
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
"name": "@stacksjs/defaults",
|
|
3
3
|
"type": "module",
|
|
4
4
|
"sideEffects": false,
|
|
5
|
-
"version": "0.70.
|
|
5
|
+
"version": "0.70.295",
|
|
6
6
|
"description": "The complete managed Stacks application scaffold, including runtime defaults, AI guidance, editor metadata, and npm-backed project support files.",
|
|
7
7
|
"author": "Chris Breuer",
|
|
8
8
|
"license": "MIT",
|