protected function addRoutes(ControllerCollection $c) { $c->method('GET|POST'); $c->match('/editcontent/{contenttypeslug}/{id}', 'edit')->bind('editcontent')->assert('id', '\\d*')->value('id', ''); $c->get('/overview/{contenttypeslug}', 'overview')->bind('overview'); $c->get('/relatedto/{contenttypeslug}/{id}', 'related')->bind('relatedto')->assert('id', '\\d*'); }
protected function addRoutes(ControllerCollection $c) { $c->method('GET|POST'); $c->get('/list/{contenttypeslug}', 'overview')->bind('overview'); $c->match('/add-edit/{contenttypeslug}/{id}', 'edit')->bind('editcontent')->value('id', ''); $c->get('/delete/{contenttypeslug}/{id}', 'delete')->bind('deletecontent'); $c->post('/content-{action}/{contenttypeslug}/{id}', 'modify')->bind('contentaction'); $c->get('/relatedto/{contenttypeslug}/{id}', 'related')->bind('relatedto'); }
protected function addRoutes(ControllerCollection $c) { $c->method('POST'); $c->post('/content/{action}', 'action')->bind('contentaction'); }
protected function addRoutes(ControllerCollection $c) { $c->method('GET'); $c->get('/sign-in', 'signin')->bind('postLogin'); }