Joris Vink f6cd16c567 Replace static/dynamic with a single option: route
Kore will automatically detect if a route is a dynamic or static one
so there is no need for the configuration options to differ anymore.
2019-11-15 08:11:02 +01:00
..
2018-01-20 22:51:06 +01:00
2017-03-06 11:00:53 +01:00

This example demonstrates how you can use external libs in your application.

In this case we link against yajl (Yet Another JSON library) in order to parse a JSON string that was POSTed to the server.

Take a peek at conf/build.conf for different build flavors and how to link to other libraries.

Run:

	$ kodev run

Test:

	$ curl -i -k -d '{"foo":{"bar": "Hello world"}}' https://127.0.0.1:8888

The result should echo back the foo.bar JSON path value: Hello world.

The yajl repo is available @ https://github.com/lloyd/yajl