jaumard/trailpack-annotations

View on GitHub
archetype/config/annotations.js

Summary

Maintainability
A
0 mins
Test Coverage
/**
 * Annotations Configuration
 * (app.config.annotations)
 *
 * Configure route, policy annotations, add custom annotation
 *
 * @see {@link https://github.com/jaumard/trailpack-annotations}
 */
module.exports = {
  policy: true,//Enable @Policy
  route: true,//Enable @Route
  pathToScan: './api/controllers',//Where to search controllers
  customAnnotations: {}//Add custom annotations here
}