Skip to content

0.2.0

Pre-release
Pre-release
Compare
Choose a tag to compare
@Odrin Odrin released this 19 Aug 13:51
· 38 commits to master since this release

Bug Fixes

  • error handlers now working

Code Refactoring

  • request handles: added IRequestHandler and IErrorRequestHandler instead of Express.RequestHandler and ErrorRequestHandler; handlers now async and using promises;
  • added class Metadata to encapsulate Reflect lib
  • removed EasyRestConfig, all logic moved to ApplicationInstance
  • temporarily added ContextDataProvider which will be replaced with HttpContext and ActionContext in future
  • decorators naming changed to CamelCase instead of lowerCamelCase
  • Controller renamed to ApiController

Features

  • authentication added - see IAuthenticationProvider, IPrincipal, IIdentity;
  • authorization decorators added - see @authorize, @allowAnonymous