From d1ca6eb311bbe8e91f537c1bd800874503699643 Mon Sep 17 00:00:00 2001 From: Jocelyn Fiat Date: Wed, 1 Jun 2016 13:48:49 +0200 Subject: [PATCH] Get GCSE module accepts /gcse or /gcse/ . --- modules/google_search/src/google_custom_search_module.e | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/modules/google_search/src/google_custom_search_module.e b/modules/google_search/src/google_custom_search_module.e index 6e2344a..9ed693f 100644 --- a/modules/google_search/src/google_custom_search_module.e +++ b/modules/google_search/src/google_custom_search_module.e @@ -45,9 +45,12 @@ feature -- Router setup_router (a_router: WSF_ROUTER; a_api: CMS_API) -- Router configuration. + local + m: WSF_URI_MAPPING do - a_router.handle ("/gcse", create {WSF_URI_AGENT_HANDLER}.make (agent handle_search (a_api, ?, ?)), a_router.methods_head_get) - end + create m.make_trailing_slash_ignored ("/gcse", create {WSF_URI_AGENT_HANDLER}.make (agent handle_search (a_api, ?, ?))) + a_router.map (m, a_router.methods_head_get) + end feature -- Recaptcha