Task #21 - add page controller and page/node api endpoints
This commit is contained in:
@@ -29,6 +29,11 @@ class Node extends Model {
|
||||
const Page = this.model.get("api:Page")
|
||||
return this.belongs_to_one(Page, "PageId", "_id")
|
||||
}
|
||||
|
||||
update_from_raw(data) {
|
||||
if ( data.Type ) this.Type = data.Type
|
||||
if ( data.Value ) this.Value = data.Value
|
||||
}
|
||||
}
|
||||
|
||||
module.exports = exports = Node;
|
||||
|
||||
Reference in New Issue
Block a user