From e3f69fc1146b341878cacdb9bb6f67b42d84b658 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 Signed-off-by: Josef Moravec Signed-off-by: Jonathan Druart --- 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 c3c4b42dd1..d9405d96ab 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/modules/tools/letter.tt +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/tools/letter.tt @@ -478,7 +478,7 @@ $.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.39.5