← All native models

Model fields

handler

One page handler: an export of the page's Lua with its input and output schemas.

object
inputSchemaRequired
modeRequired

read loads data for rendering; action runs on a form submit or event and may change things.

string
Allowed values
["read","action"]
nameRequired

The handler's name: the export of the page's server Lua it calls, and the name its template uses.

string
Minimum length
1
outputSchemaRequired

Only the fields listed here are accepted.