Skip to content

fiction.serve

Creates a new route

Terminal window
fiction.serve "<route>" "<function>" "<content type>" "<route type?>"
ArgumentDescriptionTypeRequired
$1Route namestringtrue
$2Function or command to execute on routestringfalse
$3Use custom content type instead of automatically defined onestringfalse
$4Specify route type (static/dynamic/api/cgi/dynamic-api)stringfalse