Slop.ExampleRouter.ExampleChatController (slop v0.1.0)

View Source

Summary

Functions

Process a chat request and return a response.

Functions

handle_chat(conn, params)

Process a chat request and return a response.

This callback should be implemented to handle chat requests. It should return either a map that will be encoded to JSON, or a connection to support streaming.