@ -620,7 +620,7 @@ We can further improve by using the `nest` method together with `accept`:
@@ -620,7 +620,7 @@ We can further improve by using the `nest` method together with `accept`:
@ -631,7 +631,7 @@ We can further improve by using the `nest` method together with `accept`:
@@ -631,7 +631,7 @@ We can further improve by using the `nest` method together with `accept`:
accept(APPLICATION_JSON).nest {
GET("/{id}", handler::getPerson)
GET(handler::listPeople)
POST("/person", handler::createPerson)
POST(handler::createPerson)
}
}
}
@ -766,7 +766,7 @@ For instance, consider the following example:
@@ -766,7 +766,7 @@ For instance, consider the following example:
@ -644,7 +644,7 @@ We can further improve by using the `nest` method together with `accept`:
@@ -644,7 +644,7 @@ We can further improve by using the `nest` method together with `accept`:
@ -657,7 +657,7 @@ We can further improve by using the `nest` method together with `accept`:
@@ -657,7 +657,7 @@ We can further improve by using the `nest` method together with `accept`:
accept(APPLICATION_JSON).nest {
GET("/{id}", handler::getPerson)
GET("", handler::listPeople)
POST("/person", handler::createPerson)
POST(handler::createPerson)
}
}
}
@ -779,7 +779,7 @@ For instance, consider the following example:
@@ -779,7 +779,7 @@ For instance, consider the following example: