create-demiurge 0.2.0-beta.4 → 0.2.0-beta.6
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/package.json
CHANGED
|
@@ -1,6 +1,10 @@
|
|
|
1
1
|
import { defineRoutePolicy } from "@demiurgejs/core";
|
|
2
2
|
|
|
3
3
|
export const policy = defineRoutePolicy({
|
|
4
|
+
// Demiurge denies a route that inherits no access declaration. This
|
|
5
|
+
// application is public, so the root policy states that intent. Replace this
|
|
6
|
+
// declaration with access: { authorize } for a subtree that needs a check.
|
|
7
|
+
access: { public: true },
|
|
4
8
|
security: {
|
|
5
9
|
request: {
|
|
6
10
|
allowedMethods: ["GET"],
|
|
@@ -1,6 +1,11 @@
|
|
|
1
|
-
import { defineRoutePolicy } from "@demiurgejs/core";
|
|
1
|
+
import { defineRoutePolicy, security } from "@demiurgejs/core";
|
|
2
2
|
|
|
3
3
|
export const policy = defineRoutePolicy({
|
|
4
|
+
// Demiurge denies a route that inherits no access declaration. This
|
|
5
|
+
// application is public, so the root policy states that intent. Replace this
|
|
6
|
+
// declaration with access: { authorize } for a subtree that needs a check.
|
|
7
|
+
access: { public: true },
|
|
8
|
+
document: security.strict(),
|
|
4
9
|
security: {
|
|
5
10
|
request: {
|
|
6
11
|
allowedMethods: ["GET"],
|