mirror of
https://github.com/wallabag/wallabag.git
synced 2025-07-12 16:58:37 +00:00
create ImportController to list importers
This commit is contained in:
parent
557e549db7
commit
d51b38ed30
5 changed files with 49 additions and 5 deletions
|
@ -4,20 +4,19 @@ namespace Wallabag\ImportBundle\Controller;
|
|||
|
||||
use Symfony\Bundle\FrameworkBundle\Controller\Controller;
|
||||
use Sensio\Bundle\FrameworkExtraBundle\Configuration\Route;
|
||||
use Wallabag\ImportBundle\Import\PocketImport;
|
||||
|
||||
class PocketController extends Controller
|
||||
{
|
||||
/**
|
||||
* @Route("/import", name="import")
|
||||
* @Route("/import/pocket", name="pocket")
|
||||
*/
|
||||
public function importAction()
|
||||
public function indexAction()
|
||||
{
|
||||
return $this->render('WallabagImportBundle:Pocket:index.html.twig', array());
|
||||
}
|
||||
|
||||
/**
|
||||
* @Route("/auth-pocket", name="authpocket")
|
||||
* @Route("/import/pocket/auth", name="authpocket")
|
||||
*/
|
||||
public function authAction()
|
||||
{
|
||||
|
@ -28,7 +27,7 @@ class PocketController extends Controller
|
|||
}
|
||||
|
||||
/**
|
||||
* @Route("/callback-pocket", name="callbackpocket")
|
||||
* @Route("/import/pocket/callback", name="callbackpocket")
|
||||
*/
|
||||
public function callbackAction()
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue