@@ -23,7 +23,7 @@ export class EntryService {
2323 urlInProductionLegacy = environment . production === EnvironmentType . TT_PROD_LEGACY ;
2424
2525 loadActiveEntry ( ) : Observable < any > {
26- return this . http . get ( `${ this . baseUrl } /running` ) ;
26+ return this . http . get ( `${ this . baseUrl } /running/ ` ) ;
2727 }
2828
2929 loadEntries ( date ) : Observable < any > {
@@ -47,7 +47,7 @@ export class EntryService {
4747
4848 stopEntryRunning ( idEntry : string ) : Observable < any > {
4949 return ( this . urlInProductionLegacy ?
50- this . http . post ( `${ this . baseUrl } /${ idEntry } /stop` , null ) : this . http . put ( `${ this . baseUrl } /stop` , null ) ) ;
50+ this . http . post ( `${ this . baseUrl } /${ idEntry } /stop/ ` , null ) : this . http . put ( `${ this . baseUrl } /stop/ ` , null ) ) ;
5151 }
5252
5353 restartEntry ( idEntry : string ) : Observable < Entry > {
@@ -57,7 +57,7 @@ export class EntryService {
5757
5858 summary ( ) : Observable < TimeEntriesSummary > {
5959 const timeOffset = new Date ( ) . getTimezoneOffset ( ) ;
60- const summaryUrl = `${ this . baseUrl } /summary?time_offset=${ timeOffset } ` ;
60+ const summaryUrl = `${ this . baseUrl } /summary/ ?time_offset=${ timeOffset } ` ;
6161 return this . http . get < TimeEntriesSummary > ( summaryUrl ) ;
6262 }
6363
@@ -70,7 +70,7 @@ export class EntryService {
7070
7171 loadEntriesByTimeRange ( range : TimeEntriesTimeRange , userId : string ) : Observable < any > {
7272 const MAX_NUMBER_OF_ENTRIES_FOR_REPORTS = 9999 ;
73- const loadEntriesByTimeRangeURL = this . urlInProductionLegacy ? this . baseUrl : this . baseUrl + '/report' ;
73+ const loadEntriesByTimeRangeURL = this . urlInProductionLegacy ? this . baseUrl : this . baseUrl + '/report/ ' ;
7474 return this . http . get ( loadEntriesByTimeRangeURL ,
7575 {
7676 params : {
0 commit comments