Skip to contents

Adds a PUT route to a tower

Usage

add_put_route(tower, path, handler)

Arguments

tower

A tower object

path

A string containing the path to match

handler

A function to call when the route is matched

Value

A tower object with the route added