### ----------------------------------------------------
### -- Cromponent
### -- Licenses: Artistic-2.0
### -- Authors: Fernando Corrêa de Oliveira
### -- File: bin/lib/todo-routes.rakumod
### ----------------------------------------------------
use Cro::HTTP::Router;
use Cro::WebApp::Template;
use Todo;

sub todo-routes is export {
	route {
		template-location "resources/";

		Todo.^add-cromponent-routes;

		get -> { template "todo-base.crotmp", { :todos(Todo.all), :base</todo/> } }
	}
}


