Skip to content

Glossary: Building APIs with Node.js

Plugin, prefix

Also written: plugin, prefix

A plugin is an `async` function that adds routes to an app. The prefix is the URL start they share, so a plugin's `/` under prefix `/products` answers `GET /products`.

Where the book teaches it

Related terms

app.register()