Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import { Injectable } from '@angular/core';
- @Injectable({
- providedIn: 'root'
- })
- export class ConfigService {
- public _api_url = '/api';
- private _user_url = this._api_url + '/user';
- private _refresh_token_url = this._api_url + '/refresh';
- get refresh_token_url(): string {
- return this._refresh_token_url;
- }
- private _login_url = this._api_url + '/login';
- get login_url(): string {
- return this._login_url;
- }
- private _logout_url = this._api_url + '/logout';
- get logout_url(): string {
- return this._logout_url;
- }
- private _change_password_url = this._api_url + '/changePassword';
- get change_password_url(): string {
- return this._change_password_url;
- }
- private _change_email_url = this._api_url;
- get change_email_url(): string {
- return this._change_email_url;
- }
- private _whoami_url = this._api_url + '/whoami';
- get whoami_url(): string {
- return this._whoami_url;
- }
- private _users_url = this._user_url + '/all';
- get users_url(): string {
- return this._users_url;
- }
- private _reset_credentials_url = this._user_url + '/reset-credentials';
- get reset_credentials_url(): string {
- return this._reset_credentials_url;
- }
- private _signup_url = this._api_url + '/signup';
- get signup_url(): string {
- return this._signup_url;
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement