From 5aefcd63517fb0fef63261b17b5a9107cb8c10e1 Mon Sep 17 00:00:00 2001 From: Pellaeon Lin Date: Fri, 29 Aug 2014 17:36:00 +0000 Subject: [PATCH] Add all routes --- appinfo/routes.php | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/appinfo/routes.php b/appinfo/routes.php index d3334cf..a3597f3 100644 --- a/appinfo/routes.php +++ b/appinfo/routes.php @@ -22,5 +22,8 @@ namespace OCA\Registration\AppInfo; $application = new Application(); $application->registerRoutes($this, array('routes' => array( - array('name' => 'registration#displayRegisterPage', 'url' => '/', 'verb' => 'GET') + array('name' => 'registration#displayRegisterPage', 'url' => '/', 'verb' => 'GET'), + array('name' => 'registration#validateEmail', 'url' => '/', 'verb' => 'POST'), + array('name' => 'registration#verifyToken', 'url' => '/verify/{token}', 'verb' => 'GET'), + array('name' => 'registration#createAccount', 'url' => '/verify/{token}', 'verb' => 'POST') )));