Skip to content
Snippets Groups Projects
Commit 8c32eaaa authored by Markus Grigull's avatar Markus Grigull
Browse files

Add relative path to nodes

parent 48bd16bc
No related branches found
No related tags found
No related merge requests found
......@@ -32,7 +32,8 @@ var nodeSchema = new Schema({
name: { type: String, required: true, unique: true, set: function(name) { this._name = this.name; return name; } },
endpoint: { type: String, required: true, unique: true },
config: { type: Schema.Types.Mixed, default: {} },
simulators: [{ type: Schema.Types.Mixed, default: [] }]
simulators: [{ type: Schema.Types.Mixed, default: [] }],
relativeEndpoint: { type: Boolean, default: false }
}, { versionKey: false });
nodeSchema.post('save', function() {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment