Is it viable to access all decorators located in a specific directory? I am interested in developing a routing component that functions similarly to Symfony, which utilizes Annotations:
@Route("/")
public function index() { // ...
Therefore, when initializing my application, I aim to identify all annotations and generate routes based on them. Is this achievable?
edit: To elaborate further: My focus is on a NodeJS application. I intend to scan through every file within a given directory and detect all decorators present.