tibi-docs/api/collections/ssr.yml
Sebastian Frank 1ebd1424e5
Some checks failed
deploy to production / deploy (push) Failing after 52s
ssr via fetch
2024-04-10 08:26:40 +00:00

58 lines
1.2 KiB
YAML

########################################################################
# SSR Dummy collections
########################################################################
name: ssr
meta:
label: { de: "SSR Dummy", en: "ssr dummy" }
muiIcon: server
rowIdentTpl: { twig: "{{ id }}" }
views:
- type: simpleList
mediaQuery: "(max-width: 600px)"
primaryText: id
secondaryText: insertTime
tertiaryText: path
- type: table
columns:
- id
- insertTime
- source: path
filter: true
permissions:
public:
methods:
get: true
post: true
put: false
delete: false
user:
methods:
get: true
post: false
put: false
delete: true
hooks:
get:
read:
type: javascript
file: hooks/ssr/get_read.js
post:
bind:
type: javascript
file: hooks/ssr/post_bind.js
fields:
- name: path
type: string
index: [single, unique]
- name: content
type: string
meta:
inputProps:
multiline: true