From 1775458f73b5a5f1afd1d3f00a7dd2b19e431cfd 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 09a5e79..1e549e0 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 cfb77e7..b6b6bdb 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.10.2