my-notes-viewer/api/collections/ssr.yml

60 lines
1.3 KiB
YAML
Raw Normal View History

2021-03-22 15:59:05 +01:00
########################################################################
# SSR Dummy collections
########################################################################
name: ssr
meta:
label: { de: "SSR Dummy", en: "ssr dummy" }
muiIcon: http
rowIdentTpl: { twig: "{{ id }}" }
views:
- type: simpleList
mediaQuery: "(max-width: 600px)"
primaryText: id
secondaryText: insertTime
tertiaryText: path
- type: table
columns:
- id
- insertTime
- path
permissions:
public:
methods:
get: false
post: false
put: false
delete: false
user:
methods:
get: false
post: false
put: false
delete: false
"token:${SSR_TOKEN}":
methods:
# only via url=
get: true
post: false
put: false
delete: false
hooks:
get:
read:
type: javascript
file: hooks/ssr/get_read.js
post:
create:
type: javascript
file: hooks/ssr/post_create.js
# we only need hooks
fields:
- name: path
type: string
index: [single, unique]
- name: content
type: string