Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import MathOps._
- object routes extends RouteSet with RouteBuilder with Responders {
- val routes =
- Get -> "/add" ! ( query[Int]("a") & query[Int]("b") ^ add ) |
- Get -> "/sub" ! ( query[Int]("a") & query[Int]("b") ^ sub ) |
- Get -> "/pow" ! ( query[Int]("a") & query[Int]("b") ^ pow )
- }
Add Comment
Please, Sign In to add comment