Added web and email notifications. Tests. Fire page
This commit is contained in:
parent
df05b33e82
commit
3bf21c8caf
32 changed files with 696 additions and 88 deletions
25
imports/api/Fires/Fires.js
Normal file
25
imports/api/Fires/Fires.js
Normal file
|
|
@ -0,0 +1,25 @@
|
|||
/* eslint-disable consistent-return */
|
||||
|
||||
import { Mongo } from 'meteor/mongo';
|
||||
import SimpleSchema from 'simpl-schema';
|
||||
import firesCommonSchema from '../Common/FiresSchema';
|
||||
|
||||
const Fires = new Mongo.Collection('fires', { idGeneration: 'MONGO' });
|
||||
|
||||
Fires.allow({
|
||||
insert: () => false,
|
||||
update: () => false,
|
||||
remove: () => false
|
||||
});
|
||||
|
||||
Fires.deny({
|
||||
insert: () => true,
|
||||
update: () => true,
|
||||
remove: () => true
|
||||
});
|
||||
|
||||
Fires.schema = new SimpleSchema(firesCommonSchema);
|
||||
|
||||
Fires.attachSchema(Fires.schema);
|
||||
|
||||
export default Fires;
|
||||
Loading…
Add table
Add a link
Reference in a new issue