Answer the question
In order to leave comments, you need to log in
Node.js loopback 401 when getting data?
I have a Todo model, here is the access:
"relations": {
"person": {
"type": "belongsTo",
"model": "Person",
"foreignKey": "personId"
}
},
"acls": [
{
"accessType": "*",
"principalType": "ROLE",
"principalId": "$everyone",
"permission": "DENY"
},
{
"accessType": "*",
"principalType": "ROLE",
"principalId": "$owner",
"permission": "ALLOW"
}
],
"relations": {
"todos": {
"type": "hasMany",
"model": "Todo",
"foreignKey": "personId"
}
}
Answer the question
In order to leave comments, you need to log in
http status 401
and in general, a self-respecting web developer should know http statuses as a multiplication table
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question