Skip to content

Instantly share code, notes, and snippets.

@kareblak
Last active December 16, 2016 10:06
Show Gist options
  • Save kareblak/032cd23a0cf6ef1a76037136066e772f to your computer and use it in GitHub Desktop.
Save kareblak/032cd23a0cf6ef1a76037136066e772f to your computer and use it in GitHub Desktop.
def mappedIntent = Mapping[Any, String] {
case ContextPath(_, path) => path
}
def intent = mappedIntent {
case "/" => (get | post)
}
Error:(23, 22) type mismatch;
found : unfiltered.directives.FilterDirective[javax.servlet.http.HttpServletRequest,Any,unfiltered.response.ResponseFunction[Any]]
required: unfiltered.request.HttpRequest[?] => unfiltered.directives.Result[unfiltered.response.ResponseFunction[?],unfiltered.response.ResponseFunction[?]]
case "/" => (get | post)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment