Skip to content
This repository was archived by the owner on Aug 3, 2025. It is now read-only.
This repository was archived by the owner on Aug 3, 2025. It is now read-only.

Make route handlers optional #59

@bcongdon

Description

@bcongdon

It would be nice if you could just write the RouteCollection for defining routes, like:

Route{
    "GigInfo",
    "GET",
    "/gigs/{gig_id}",
    GigInfo,
}

... without having to create the additional boilerplate function for handling the request:

func GigInfo(w http.ResponseWriter, r *http.Request) {
    proxy.GET(w, GigURL+r.URL.String(), GigFormat, "", r)
}

It's nice to have the possibility of extensibility with these request handlers, but it often just makes the process of registering a service with {Groot, Arbor} more tedious.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions