Skip to content

Commit

Permalink
update readme for 1.1.0
Browse files Browse the repository at this point in the history
  • Loading branch information
Julio Capote committed Nov 20, 2012
1 parent 37c8195 commit 913d0ed
Show file tree
Hide file tree
Showing 2 changed files with 27 additions and 2 deletions.
27 changes: 26 additions & 1 deletion README.markdown
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -117,6 +117,31 @@ object App {
val anView = new AnView val anView = new AnView
render.view(anView).toFuture 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 val app = new ExampleApp
Expand Down Expand Up @@ -184,7 +209,7 @@ Add the dependency to your pom.xml
<dependency> <dependency>
<groupId>com.twitter</groupId> <groupId>com.twitter</groupId>
<artifactId>finatra</artifactId> <artifactId>finatra</artifactId>
<version>1.0.3</version> <version>1.1.0</version>
</dependency> </dependency>
``` ```


2 changes: 1 addition & 1 deletion script/finatra/lib/base.sh
Original file line number Original file line Diff line number Diff line change
@@ -1,4 +1,4 @@
VERSION=1.0.3 VERSION=1.1.0
EXAMPLE_REPO=~/personal/finatra_example EXAMPLE_REPO=~/personal/finatra_example




Expand Down

0 comments on commit 913d0ed

Please sign in to comment.