From c43c32a2c82c8a4bcc331c8cbb89e303c47d3399 Mon Sep 17 00:00:00 2001 From: Jonathan Druart Date: Tue, 24 Jan 2017 10:09:26 +0100 Subject: [PATCH] Bug 17981: Move svc/letters to svc/letters/get To allow another script under svc/letters Signed-off-by: Kyle M Hall --- koha-tmpl/intranet-tmpl/prog/en/modules/tools/letter.tt | 2 +- svc/{letters => letters/get} | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) rename svc/{letters => letters/get} (93%) diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/tools/letter.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/tools/letter.tt index 25523cedc5..b8dcfe47de 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/modules/tools/letter.tt +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/tools/letter.tt @@ -78,7 +78,7 @@ $(document).ready(function() { $.ajax({ data: { code: new_lettercode, branchcode: new_branchcode }, type: 'GET', - url: '/cgi-bin/koha/svc/letters/', + url: '/cgi-bin/koha/svc/letters/get/', success: function (data) { if ( data.letters.length > 0 ) { if( new_branchcode == '' ) { diff --git a/svc/letters b/svc/letters/get similarity index 93% rename from svc/letters rename to svc/letters/get index cfb77e7837..b6b6bdbe3a 100755 --- a/svc/letters +++ b/svc/letters/get @@ -24,11 +24,11 @@ use C4::Letters qw( GetLetters ); =head1 NAME -svc/letters - Web service for getting letters +svc/letters/get - Web service for getting letters =head1 SYNOPSIS - GET /svc/letters + GET /svc/letters/get =head1 DESCRIPTION @@ -42,7 +42,7 @@ For the moment, this service is only used to get a letter from a letter code. =over 4 -GET /svc/letters/$code +GET /svc/letters/get/$code =back -- 2.11.0