summaryrefslogtreecommitdiff
path: root/lib/Dancer2/Core/Route.pm
diff options
context:
space:
mode:
Diffstat (limited to 'lib/Dancer2/Core/Route.pm')
-rw-r--r--lib/Dancer2/Core/Route.pm10
1 files changed, 8 insertions, 2 deletions
diff --git a/lib/Dancer2/Core/Route.pm b/lib/Dancer2/Core/Route.pm
index 67970de9..bea52b14 100644
--- a/lib/Dancer2/Core/Route.pm
+++ b/lib/Dancer2/Core/Route.pm
@@ -1,6 +1,6 @@
package Dancer2::Core::Route;
# ABSTRACT: Dancer2's route handler
-$Dancer2::Core::Route::VERSION = '1.0.0';
+$Dancer2::Core::Route::VERSION = '1.1.0';
use Moo;
use Dancer2::Core::Types;
use Module::Runtime 'use_module';
@@ -12,6 +12,12 @@ use Type::Registry;
our ( $REQUEST, $RESPONSE, $RESPONDER, $WRITER, $ERROR_HANDLER );
+has name => (
+ is => 'ro',
+ isa => Str,
+ predicate => 'has_name',
+);
+
has method => (
is => 'ro',
isa => Dancer2Method,
@@ -318,7 +324,7 @@ Dancer2::Core::Route - Dancer2's route handler
=head1 VERSION
-version 1.0.0
+version 1.1.0
=head1 ATTRIBUTES