Maru.Router.Endpoint

Generate endpoint of maru router.

Summary

Functions

Generate general endpoint defined by user within method block

Generate MethodNotAllow endpoint for all path without match method

Send response for different kinds of data type

Parse and validate params

Functions

dispatch(ep)

Generate general endpoint defined by user within method block.

dispatch_405(version, path)

Generate MethodNotAllow endpoint for all path without match method.

send_resp(conn, conn)

Send response for different kinds of data type.

validate_params(list1, params, result)

Parse and validate params.