Guest User

Untitled

a guest
Dec 9th, 2018
124
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.30 KB | None | 0 0
  1. import MathOps._
  2.  
  3. object routes extends RouteSet with RouteBuilder with Responders {
  4. val routes =
  5. Get -> "/add" ! ( query[Int]("a") & query[Int]("b") ^ add ) |
  6. Get -> "/sub" ! ( query[Int]("a") & query[Int]("b") ^ sub ) |
  7. Get -> "/pow" ! ( query[Int]("a") & query[Int]("b") ^ pow )
  8. }
Add Comment
Please, Sign In to add comment