diff options
Diffstat (limited to 'app/config')
-rw-r--r-- | app/config/config.yml | 20 | ||||
-rw-r--r-- | app/config/routing.yml | 11 | ||||
-rw-r--r-- | app/config/routing_rest.yml | 4 |
3 files changed, 34 insertions, 1 deletions
diff --git a/app/config/config.yml b/app/config/config.yml index d7c465db..f2f5f9f3 100644 --- a/app/config/config.yml +++ b/app/config/config.yml | |||
@@ -84,3 +84,23 @@ swiftmailer: | |||
84 | username: "%mailer_user%" | 84 | username: "%mailer_user%" |
85 | password: "%mailer_password%" | 85 | password: "%mailer_password%" |
86 | spool: { type: memory } | 86 | spool: { type: memory } |
87 | |||
88 | fos_rest: | ||
89 | param_fetcher_listener: true | ||
90 | body_listener: true | ||
91 | format_listener: true | ||
92 | view: | ||
93 | view_response_listener: 'force' | ||
94 | formats: | ||
95 | xml: true | ||
96 | json : true | ||
97 | templating_formats: | ||
98 | html: true | ||
99 | force_redirects: | ||
100 | html: true | ||
101 | failed_validation: HTTP_BAD_REQUEST | ||
102 | default_engine: twig | ||
103 | routing_loader: | ||
104 | default_format: json | ||
105 | |||
106 | nelmio_api_doc: ~ \ No newline at end of file | ||
diff --git a/app/config/routing.yml b/app/config/routing.yml index 95c224ab..a57311dc 100644 --- a/app/config/routing.yml +++ b/app/config/routing.yml | |||
@@ -4,4 +4,13 @@ app: | |||
4 | 4 | ||
5 | homepage: | 5 | homepage: |
6 | pattern: / | 6 | pattern: / |
7 | defaults: { _controller: WallabagCoreBundle:Entry:showUnread } \ No newline at end of file | 7 | defaults: { _controller: WallabagCoreBundle:Entry:showUnread } |
8 | |||
9 | doc-api: | ||
10 | resource: "@NelmioApiDocBundle/Resources/config/routing.yml" | ||
11 | prefix: /api/doc | ||
12 | |||
13 | rest : | ||
14 | type : rest | ||
15 | resource : "routing_rest.yml" | ||
16 | prefix : /api \ No newline at end of file | ||
diff --git a/app/config/routing_rest.yml b/app/config/routing_rest.yml new file mode 100644 index 00000000..ecddbd36 --- /dev/null +++ b/app/config/routing_rest.yml | |||
@@ -0,0 +1,4 @@ | |||
1 | app_api : | ||
2 | type: rest | ||
3 | resource: "WallabagCoreBundle:Api" | ||
4 | name_prefix: api_ \ No newline at end of file | ||