Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Allow external users to trigger notify #46

Open
wants to merge 3 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
2 changes: 1 addition & 1 deletion manifest.json
Expand Up @@ -2,7 +2,7 @@
"$schema": "https://raw.githubusercontent.com/vtex/node-vtex-api/master/gen/manifest.schema",
"name": "broadcaster",
"vendor": "vtex",
"version": "0.7.5",
"version": "0.7.6-beta.0",
"title": "Broadcaster Adapter",
"description": "Reference app for VTEX IO Services",
"builders": {
Expand Down
2 changes: 1 addition & 1 deletion node/package.json
Expand Up @@ -5,7 +5,7 @@
"devDependencies": {
"@types/co-body": "^0.0.3",
"@types/node": "12.x",
"@vtex/api": "6.30.1",
"@vtex/api": "6.36.0",
"eslint": "^6.3.0",
"eslint-config-vtex": "^11.0.0",
"prettier": "^1.18.2",
Expand Down
12 changes: 11 additions & 1 deletion node/service.json
Expand Up @@ -8,7 +8,17 @@
"routes": {
"notify": {
"path": "/notify",
"public": false
"public": false,
"access": "authorized",
"policies": [
{
"effect": "allow",
"actions": ["post"],
"principals": [
"vrn:vtex.vtex-id:*:*:*:user/*"
]
}
]
}
}
}