diff options
-rw-r--r-- | cask/src/cask/Routes.scala | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/cask/src/cask/Routes.scala b/cask/src/cask/Routes.scala index 156fdbf..a4ff770 100644 --- a/cask/src/cask/Routes.scala +++ b/cask/src/cask/Routes.scala @@ -28,10 +28,10 @@ object ParamType{ trait RouteBase{ val path: String } -class get(val path: String) extends StaticAnnotation with RouteBase -class post(val path: String) extends StaticAnnotation with RouteBase -class put(val path: String) extends StaticAnnotation with RouteBase -class route(val path: String, val methods: Seq[String]) extends StaticAnnotation with RouteBase +class get(val path: String, async: Boolean = false) extends StaticAnnotation with RouteBase +class post(val path: String, async: Boolean = false) extends StaticAnnotation with RouteBase +class put(val path: String, async: Boolean = false) extends StaticAnnotation with RouteBase +class route(val path: String, val methods: Seq[String], async: Boolean = false) extends StaticAnnotation with RouteBase case class Response(data: Response.Data, statusCode: Int = 200, |