Files
tabby-web/frontend/src/services/common.service.ts

15 lines
322 B
TypeScript
Raw Normal View History

2021-07-25 14:00:22 +02:00
import { Injectable } from '@angular/core'
2021-07-25 17:44:43 +02:00
declare const BACKEND_URL: any
2021-07-25 14:00:22 +02:00
@Injectable({ providedIn: 'root' })
export class CommonService {
2021-07-25 17:44:43 +02:00
backendURL: string = BACKEND_URL
2021-07-25 14:00:22 +02:00
2021-07-25 14:38:14 +02:00
constructor () {
2021-07-25 17:44:43 +02:00
if (this.backendURL.endsWith('/')) {
this.backendURL = this.backendURL.slice(0, -1)
}
2021-07-25 14:00:22 +02:00
}
}