initial
This commit is contained in:
@@ -0,0 +1,38 @@
|
||||
<cfcomponent extends="taffy.core.resource" taffy:uri="/echo/tunnel/{id}">
|
||||
|
||||
<cffunction name="get">
|
||||
<cfargument name="id" />
|
||||
|
||||
<cfset var echo = {} />
|
||||
<cfset echo.actualMethod = "get" />
|
||||
|
||||
<cfreturn representationOf(echo) />
|
||||
</cffunction>
|
||||
|
||||
<cffunction name="put">
|
||||
<cfargument name="id" />
|
||||
|
||||
<cfset var echo = {} />
|
||||
<cfset echo.actualMethod = "put" />
|
||||
|
||||
<cfreturn representationOf(echo).withStatus(200) />
|
||||
</cffunction>
|
||||
|
||||
<cffunction name="post">
|
||||
<cfargument name="id" />
|
||||
|
||||
<cfset var echo = {} />
|
||||
<cfset echo.actualMethod = "post" />
|
||||
|
||||
<cfreturn representationOf(echo).withStatus(201) />
|
||||
</cffunction>
|
||||
|
||||
<cffunction name="delete">
|
||||
<cfargument name="id" />
|
||||
|
||||
<cfset var echo = {} />
|
||||
<cfset echo.actualMethod = "delete" />
|
||||
|
||||
<cfreturn representationOf(echo).withStatus(200) />
|
||||
</cffunction>
|
||||
</cfcomponent>
|
||||
Reference in New Issue
Block a user