Initial commit
This commit is contained in:
38
api/collections/form.yml
Normal file
38
api/collections/form.yml
Normal file
@@ -0,0 +1,38 @@
|
||||
name: form
|
||||
uploadPath: ../media/forms
|
||||
|
||||
meta:
|
||||
label: Formular
|
||||
muiIcon: web
|
||||
backup:
|
||||
active: true
|
||||
collectionName: backups
|
||||
views:
|
||||
- type: table
|
||||
columns:
|
||||
- source: formular
|
||||
|
||||
permissions:
|
||||
public:
|
||||
methods:
|
||||
get: true
|
||||
post: true
|
||||
put: false
|
||||
delete: false
|
||||
user:
|
||||
methods:
|
||||
get: true
|
||||
post: true
|
||||
put: true
|
||||
delete: true
|
||||
hooks:
|
||||
post:
|
||||
create:
|
||||
type: javascript
|
||||
file: hooks/forms/post_create.js
|
||||
return:
|
||||
type: javascript
|
||||
file: hooks/forms/post_return.js
|
||||
|
||||
fields:
|
||||
- !include fields/form.yml
|
||||
Reference in New Issue
Block a user