add_route: Add an HTTP layer to a tower

View source: R/http_helpers.R

add_routeR Documentation

Add an HTTP layer to a tower

Description

Adds an HTTP layer to a tower

Usage

add_route(tower, method = "GET", path, handler)

Arguments

tower

A tower object

method

A string containing the HTTP method to match

path

A string containing the path to match

handler

A function to call when the layer is matched

Value

The tower with the added route


tower documentation built on Oct. 30, 2024, 9:28 a.m.