Skip to content

Commit

Permalink
merge
Browse files Browse the repository at this point in the history
  • Loading branch information
lihaoyi committed Jan 4, 2024
1 parent 369bf09 commit c5eece4
Showing 1 changed file with 6 additions and 13 deletions.
19 changes: 6 additions & 13 deletions cask/src/cask/endpoints/WebEndpoints.scala
Original file line number Diff line number Diff line change
Expand Up @@ -28,29 +28,22 @@ object WebEndpoint{
b.result()
}
}
class get(val path: String,
override val subpath: Boolean = false) extends WebEndpoint{
class get(val path: String, override val subpath: Boolean = false) extends WebEndpoint{
val methods = Seq("get")
}
class post(val path: String,
override val subpath: Boolean = false) extends WebEndpoint{
class post(val path: String, override val subpath: Boolean = false) extends WebEndpoint{
val methods = Seq("post")
}
class put(val path: String,
override val subpath: Boolean = false) extends WebEndpoint{
class put(val path: String, override val subpath: Boolean = false) extends WebEndpoint{
val methods = Seq("put")
}
class patch(val path: String,
override val subpath: Boolean = false) extends WebEndpoint{
class patch(val path: String, override val subpath: Boolean = false) extends WebEndpoint{
val methods = Seq("patch")
}
class delete(val path: String,
override val subpath: Boolean = false) extends WebEndpoint{
class delete(val path: String, override val subpath: Boolean = false) extends WebEndpoint{
val methods = Seq("delete")
}
class route(val path: String,
val methods: Seq[String],
override val subpath: Boolean = false) extends WebEndpoint
class route(val path: String, val methods: Seq[String], override val subpath: Boolean = false) extends WebEndpoint

class options(val path: String,
override val subpath: Boolean = false) extends WebEndpoint{
Expand Down

0 comments on commit c5eece4

Please sign in to comment.