]> git.immae.eu Git - github/wallabag/wallabag.git/blobdiff - app/config/routing.yml
create controller to launch import command
[github/wallabag/wallabag.git] / app / config / routing.yml
index b3c5291a8745400bc137fbcb2554f61fe85439f5..0f7b61fb3427991b7fad329357ae82688a57dc3f 100644 (file)
@@ -1,7 +1,28 @@
+wallabag_api:
+    resource: "@WallabagApiBundle/Resources/config/routing.yml"
+    prefix: /
+
 app:
     resource: @WallabagCoreBundle/Controller/
-    type:     annotation
+    type: annotation
+
+doc-api:
+    resource: "@NelmioApiDocBundle/Resources/config/routing.yml"
+    prefix: /api/doc
+
+rest :
+    type : rest
+    resource : "routing_rest.yml"
+    prefix : /api
 
 homepage:
-    pattern:   /
-    defaults:  { _controller: CoreBundle:Entry:showUnread }
\ No newline at end of file
+    path: "/{page}"
+    defaults: { _controller: WallabagCoreBundle:Entry:showUnread, page : 1 }
+    requirements:
+        page: \d+
+
+fos_user:
+    resource: "@FOSUserBundle/Resources/config/routing/all.xml"
+
+fos_oauth_server_token:
+    resource: "@FOSOAuthServerBundle/Resources/config/routing/token.xml"