Skip to content

Instantly share code, notes, and snippets.

@robhinds
Created May 21, 2018 09:03
Show Gist options
  • Save robhinds/5066ed8cb08d090c2c6cabb498e07e80 to your computer and use it in GitHub Desktop.
Save robhinds/5066ed8cb08d090c2c6cabb498e07e80 to your computer and use it in GitHub Desktop.
class TestFunction extends Controller[TestInput, TestOutput]
with DefaultResponseSerializerComponent
with DefaultExceptionHandler {
override def handleRequest(in: TestInput): ApiResponse[TestOutput] =
success(TestOutput(s"OUTPUT:${in.value}"))
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment