ESP_EXPORT int esp_controller_app_greetings(HttpRoute *route) { espAction(route, "greetings-hello", NULL, hello); return 0; }
This defines a single action which renders the string "Hello World\n" in response to the client request for the URI /greeting/hello. When the URI is requested, the controller is compiled, linked into a dynamic library, saved in the cache directory and loaded into Appweb. If the source is modified, the old controller is unloaded (after ensuring there are no active requests) and the new source is compiled and loaded.
If you wish to pre-compile the controller, use the esp utility program. For example:
esp compile greetings.c
-->