Skip to content

Commit b8fc15a

Browse files
committed
Fix typo
1 parent 06d90b0 commit b8fc15a

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

_posts/2015-05-05-routes.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -25,8 +25,8 @@ GET("/", new RouteHandler() {
2525
GET("/", routeContext -> routeContext.send("Hello World"));
2626
```
2727

28-
Routes in Pippo are created using methods named after HTTP verbs. For instance, in the previous example, we created a route to handle GET requests to the root of the website. You have a corresponding method in Application for all commonly used HTTP verbs (__GET__, __POST__, __DELETE__, __HEAD__, __PUT__, __PATCH__, __CONNECT__ and __OPTIONS__). For a basic website, only GET and POST are likely to be used.
29-
Pippo comes with a "pseudo" verb `ANY` that meant the route applied to all HTTP methods/verbs.
28+
Routes in Pippo are created using methods named after HTTP verbs. For instance, in the previous example, we created a route to handle GET requests to the root of the website. You have a corresponding method in Application for all commonly used HTTP verbs (__GET__, __POST__, __DELETE__, __HEAD__, __PUT__, __PATCH__, __CONNECT__ and __OPTIONS__). For a basic website, only GET and POST are likely to be used.
29+
Pippo comes with a "pseudo" verb `ANY` that meant the route applied to any HTTP methods/verbs.
3030
```java
3131
ANY("/example", new CSRFHandler());
3232
```
@@ -83,7 +83,7 @@ If we add a route as in the below example
8383
```java
8484
GET("/test", routeContext -> routeContext.send("Test"));
8585
```
86-
and we type `localhost/test/` in browser we will se that the result is 404 (not found) http code.
86+
and we type `localhost/test/` in browser we will see that the result is 404 (not found) http code.
8787
Of course that `localhost/test` works OK. Explanation for 404 on `localhost/test/` is that we registered a route
8888
only for `/test` path.
8989
To obtain the same result for both urls (with and without `\` character at end) we will use `TrailingSlashHandler` (as before filter)

0 commit comments

Comments
 (0)