summaryrefslogtreecommitdiff
path: root/cask/src/cask/endpoints/StaticEndpoints.scala
diff options
context:
space:
mode:
Diffstat (limited to 'cask/src/cask/endpoints/StaticEndpoints.scala')
-rw-r--r--cask/src/cask/endpoints/StaticEndpoints.scala7
1 files changed, 3 insertions, 4 deletions
diff --git a/cask/src/cask/endpoints/StaticEndpoints.scala b/cask/src/cask/endpoints/StaticEndpoints.scala
index 401f845..bf99d09 100644
--- a/cask/src/cask/endpoints/StaticEndpoints.scala
+++ b/cask/src/cask/endpoints/StaticEndpoints.scala
@@ -3,8 +3,7 @@ package cask.endpoints
import cask.main.Endpoint
import cask.model.Request
-class staticFiles(val path: String) extends Endpoint{
- type InnerReturned = String
+class staticFiles(val path: String) extends Endpoint[String]{
val methods = Seq("get")
type Input = Seq[String]
type InputParser[T] = QueryParamReader[T]
@@ -22,8 +21,8 @@ class staticFiles(val path: String) extends Endpoint{
def wrapPathSegment(s: String): Input = Seq(s)
}
-class staticResources(val path: String, resourceRoot: ClassLoader = getClass.getClassLoader) extends Endpoint{
- type InnerReturned = String
+class staticResources(val path: String, resourceRoot: ClassLoader = getClass.getClassLoader)
+ extends Endpoint[String]{
val methods = Seq("get")
type Input = Seq[String]
type InputParser[T] = QueryParamReader[T]