@defra/lis-hubs-infra-access 0.17.0 → 0.18.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@defra/lis-hubs-infra-access",
3
- "version": "0.17.0",
3
+ "version": "0.18.0",
4
4
  "description": "Shared hub access and capability resolution for the livestock platform.",
5
5
  "main": "src/index.js",
6
6
  "repository": {
@@ -218,6 +218,15 @@ export function createHubAuthPlugin({
218
218
  method: 'GET',
219
219
  path: '/auth/logout',
220
220
  ...logoutController
221
+ },
222
+ {
223
+ // The shared nunjucks layout's header nav links here (see
224
+ // createNunjucksContextBuilder's logoutUrl default).
225
+ method: 'GET',
226
+ path: '/signout',
227
+ handler(_request, h) {
228
+ return h.redirect('/auth/logout')
229
+ }
221
230
  }
222
231
  ])
223
232
  }