234 attempt to fix js error Uncaught SyntaxError: Unexpected identifier 'hidden'
This commit is contained in:
@@ -0,0 +1,24 @@
|
||||
component extends="core.resource" taffy:uri="/custom" {
|
||||
|
||||
/**
|
||||
* Standard GET method
|
||||
*/
|
||||
function get() {
|
||||
return rep({ message: "Standard GET", method: "GET" });
|
||||
}
|
||||
|
||||
/**
|
||||
* Custom PATCH method using taffy_verb metadata
|
||||
*/
|
||||
function updatePartial() taffy_verb="PATCH" {
|
||||
return rep({ message: "Custom PATCH handler", method: "PATCH" });
|
||||
}
|
||||
|
||||
/**
|
||||
* Custom OPTIONS method using taffy_verb metadata (underscore style)
|
||||
*/
|
||||
function handleOptions() taffy_verb="OPTIONS" {
|
||||
return rep({ message: "Custom OPTIONS handler", method: "OPTIONS" });
|
||||
}
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user