onget
onGet is a route-handling convention used by some web frameworks to process HTTP GET requests for a specific route. It is typically exported from a route module and is invoked by the framework when a GET request matches the route’s path. In frameworks that adopt this pattern, onGet is called with a context object that provides access to the request, route parameters, and additional utilities needed to handle the request.
The function is usually asynchronous, enabling data fetching, authentication checks, and other IO operations before a
onGet is part of a broader set of method-specific handlers, such as onPost, onPut, and onDelete, which