Skip to contents

Add a handler for HTTP requests with slug given by `slug`.

Usage

add_http_handler(slug, handler)

Arguments

slug

The first part (slug) of the URL to be handled

handler

A function that handles GET requests with URLs that have `slug` as path component