Skip to content

Commit

Permalink
lb model Author
Browse files Browse the repository at this point in the history
  • Loading branch information
rmg committed Apr 20, 2017
1 parent d5d839a commit ed4f0a5
Show file tree
Hide file tree
Showing 4 changed files with 33 additions and 1 deletion.
5 changes: 5 additions & 0 deletions loopback-blog/common/models/author.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
'use strict';

module.exports = function(Author) {

};
23 changes: 23 additions & 0 deletions loopback-blog/common/models/author.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
{
"name": "Author",
"plural": "authors",
"base": "PersistedModel",
"idInjection": true,
"options": {
"validateUpsert": true
},
"properties": {
"name": {
"type": "string",
"required": true
},
"email": {
"type": "string",
"required": true
}
},
"validations": [],
"relations": {},
"acls": [],
"methods": {}
}
2 changes: 1 addition & 1 deletion loopback-blog/server/middleware.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
"helmet#frameguard": {
"params": [
"deny"
]
]
},
"helmet#hsts": {
"params": {
Expand Down
4 changes: 4 additions & 0 deletions loopback-blog/server/model-config.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,5 +12,9 @@
"../common/mixins",
"./mixins"
]
},
"Author": {
"dataSource": null,
"public": true
}
}

0 comments on commit ed4f0a5

Please sign in to comment.