Typescript annotations

Viewed 15144

I am writing project on MarionetteJS using TS and I want to use annotations to register routes. For example:

@Controller
class SomeController {

  @RouteMapping("some route")
  public SomeMethod() {
     //code
  }
}

Is there opportunity to call method annotations when I create class instance?

2 Answers

I am using typescript-rest

It allows to configure services with annotation and generates Swagger file if needed

Related