Commit 4b90d9d8 authored by anton's avatar anton
Browse files

Fix auth for maps and annotations

parent 39091ffc
......@@ -30,7 +30,8 @@
"auth0": {
"create": true,
"autoregister": true,
"domain": "auth.motionbank.org"
"domain": "auth.motionbank.org",
"services": ["annotations", "maps"]
}
},
"mongodb": "mongodb://localhost:27017/motionbank_api",
......
const { authenticate } = require('@feathersjs/authentication').hooks
module.exports = {
before: {
all: [authenticate('jwt')],
all: [],
find: [],
get: [],
create: [],
......
const { authenticate } = require('@feathersjs/authentication').hooks
module.exports = {
before: {
all: [authenticate('jwt')],
all: [],
find: [],
get: [],
create: [],
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment