entryPoint property
Construct the request channel.
Return an instance of some Controller that will be the initial receiver of all Requests.
This method is invoked after prepare.
Implementation
@override
Controller get entryPoint {
final router = Router();
// Prefer to use `link` instead of `linkFunction`.
// See: https://aqueduct.io/docs/http/request_controller/
var base = '/api/v1';
router.route("$base/hello").link(() => HelloController());
router
.route("$base/hints/:hints[/count/:count]")
.link(() => SudokuController());
router
.route("$base/count/:count[/hints/:hints]")
.link(() => SudokuController());
router.route("$base").link(() => SudokuController());
return router;
}