updated comments

This commit is contained in:
eidheim 2014-07-05 12:03:12 +02:00
commit 1c5829a8e8

View file

@ -25,6 +25,12 @@ int main() {
//POST-example for the path /json, responds firstName+" "+lastName from the posted json //POST-example for the path /json, responds firstName+" "+lastName from the posted json
//Responds with an appropriate error message if the posted json is not correct, or if firstName or lastName is missing //Responds with an appropriate error message if the posted json is not correct, or if firstName or lastName is missing
//Example posted json:
//{
// "firstName": "John",
// "lastName": "Smith",
// "age": 25
//}
httpserver.resources["^/json/?$"]["^POST$"]=[](ostream& response, const Request& request, const smatch& path_match) { httpserver.resources["^/json/?$"]["^POST$"]=[](ostream& response, const Request& request, const smatch& path_match) {
ptree pt; ptree pt;
try { try {