diff options
author | Li Haoyi <haoyi.li@databricks.com> | 2019-09-14 19:22:48 +0800 |
---|---|---|
committer | Li Haoyi <haoyi.li@databricks.com> | 2019-09-14 19:22:48 +0800 |
commit | edd1f62ce364f8b559431249e2350c2bb75fccec (patch) | |
tree | 337f0528e9284759800228e46f649cbc01f5edfe /example/decorated2/app/src | |
parent | 0460ad2eca7fcdec1ff29c289dad4ecc76dde9c6 (diff) | |
download | cask-edd1f62ce364f8b559431249e2350c2bb75fccec.tar.gz cask-edd1f62ce364f8b559431249e2350c2bb75fccec.tar.bz2 cask-edd1f62ce364f8b559431249e2350c2bb75fccec.zip |
Rename `BaseDecorator` -> `Decorator`, `Decorator` -> `RawDecorator`, `BaseEndpoint` -> `Endpoint`, `Endpoint` -> `HttpEndpoint`
Diffstat (limited to 'example/decorated2/app/src')
-rw-r--r-- | example/decorated2/app/src/Decorated2.scala | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/example/decorated2/app/src/Decorated2.scala b/example/decorated2/app/src/Decorated2.scala index fa4b1c5..305281a 100644 --- a/example/decorated2/app/src/Decorated2.scala +++ b/example/decorated2/app/src/Decorated2.scala @@ -3,12 +3,12 @@ object Decorated2 extends cask.MainRoutes{ class User{ override def toString = "[haoyi]" } - class loggedIn extends cask.Decorator { + class loggedIn extends cask.RawDecorator { def wrapFunction(ctx: cask.Request, delegate: Delegate): OuterReturned = { delegate(Map("user" -> new User())) } } - class withExtra extends cask.Decorator { + class withExtra extends cask.RawDecorator { def wrapFunction(ctx: cask.Request, delegate: Delegate): OuterReturned = { delegate(Map("extra" -> 31337)) } |