Getting the most out of Danet’s injector
Every article on this blog has done the same thing without explaining it : put a class in injectables, ask for it in a constructor, get an instance. Today we open that box.
Every article on this blog has done the same thing without explaining it : put a class in injectables, ask for it in a constructor, get an instance. Today we open that box.
Every API eventually needs two more things : something that runs at 3am, and something that runs later. Deno ships both natively, Danet puts a decorator on them.
A WebSocket is a phone call. Sometimes all you need is a newsletter. Danet does Server-Sent Events with one decorator.
Same controllers, same dependency injection, same guards, same port. Only the transport changes.
Your Danet app already serves a Swagger UI. Today we make it say something useful.