daily pastebin goal
69%
SHARE
TWEET

Untitled

a guest Sep 23rd, 2018 66 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. def lookupName(request: RequestHeader): Option[String] = {
  2.         routes.flatMap { route =>
  3.             route match {
  4.                 case (func,controllerName) =>
  5.                     func.unapply(request) match {
  6.                         case Some(_) => controllerName
  7.                         case None => None
  8.                     }
  9.                 case _ => None
  10.             }
  11.         } headOption
  12.     }
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top