Skip to content
Permalink
Browse files
update readme for 1.1.0
  • Loading branch information
capotej committed Nov 20, 2012
1 parent 37c8195 commit 913d0ed5bfa18c903feb5779d4d8b9d87703b6c5
Showing with 27 additions and 2 deletions.
  1. +26 −1 README.markdown
  2. +1 −1 script/finatra/lib/base.sh
@@ -117,6 +117,31 @@ object App {
val anView = new AnView
render.view(anView).toFuture
}
/**
* Custom Error Handling
*
* curl http://localhost:7070/error
*/
get("/error") { request =>
1234/0
render.plain("we never make it here").toFuture
}
error { request =>
render.status(500).plain("whoops!").toFuture
}
/**
* Custom 404s
*
* curl http://localhost:7070/notfound
*/
notFound { request =>
render.status(404).plain("not found yo").toFuture
}
}
val app = new ExampleApp
@@ -184,7 +209,7 @@ Add the dependency to your pom.xml
<dependency>
<groupId>com.twitter</groupId>
<artifactId>finatra</artifactId>
<version>1.0.3</version>
<version>1.1.0</version>
</dependency>
```
@@ -1,4 +1,4 @@
VERSION=1.0.3
VERSION=1.1.0
EXAMPLE_REPO=~/personal/finatra_example


0 comments on commit 913d0ed

Please sign in to comment.