#4546·hapi

Use ECMA Decorators for routing

Author: mehlCreated Mar 29, 2025Updated Apr 5, 2025
Labelsfeature

Runtime

Node

Runtime version

Any

Module version

any

Used with

Hapi as Plugin

Any other relevant information

No response

What problem are you trying to solve?

Using ECMA style decorators for routing.

Do you have a new or modified API suggestion to solve the problem?

I just wondered if there is a plugin for modern ECMA decorators as implemented in esbuild 0.21+; I found only the plugin for the old experimental style decorators.

So I wrote my decorators on my own: GitHub repository

Is there any interest in turning this into a hapi plugin as public npm package?