Programming API
Share code across request handlers and policies with modules
Sharing code across your request handlers and policies is easy with modules.
Simply create a new module with exports and import them to your other files.
Here's a module called util.ts
:
Now in our request handler, we can import this and reuse this code