Bug 17981: Move svc/letters to svc/letters/get

To allow another script under svc/letters

Signed-off-by: Kyle M Hall <kyle@bywatersolutions.com>

Signed-off-by: Josef Moravec <josef.moravec@gmail.com>

Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
This commit is contained in:
Jonathan Druart 2017-01-24 10:09:26 +01:00
parent 62c9919515
commit e3f69fc114
2 changed files with 4 additions and 4 deletions

View file

@ -478,7 +478,7 @@
$.ajax({ $.ajax({
data: { code: new_lettercode, branchcode: new_branchcode }, data: { code: new_lettercode, branchcode: new_branchcode },
type: 'GET', type: 'GET',
url: '/cgi-bin/koha/svc/letters/', url: '/cgi-bin/koha/svc/letters/get/',
success: function (data) { success: function (data) {
if ( data.letters.length > 0 ) { if ( data.letters.length > 0 ) {
if( new_branchcode == '' ) { if( new_branchcode == '' ) {

View file

@ -24,11 +24,11 @@ use C4::Letters qw( GetLetters );
=head1 NAME =head1 NAME
svc/letters - Web service for getting letters svc/letters/get - Web service for getting letters
=head1 SYNOPSIS =head1 SYNOPSIS
GET /svc/letters GET /svc/letters/get
=head1 DESCRIPTION =head1 DESCRIPTION
@ -42,7 +42,7 @@ For the moment, this service is only used to get a letter from a letter code.
=over 4 =over 4
GET /svc/letters/$code GET /svc/letters/get/$code
=back =back