Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- server {
- listen 8000;
- server_name localhost;
- location /api/ {
- rewrite ^/api/(.*)$ /$1 break;
- proxy_pass http://localhost:8080;
- }
- location / {
- proxy_pass http://locahost:4200;
- }
- }
- export class PentahoService {
- private url = 'http://localhost:8080/pentaho/api/session/userWorkspaceDir';
- private loginUrl = 'http://localhost:8000/api/pentaho/j_spring_security_check/';
- constructor(private http: HttpClient, private messageService: MessageService) { }
- private log(message: string) {
- this.messageService.add('PentahoService: ' + message);
- }
- login() {
- // return this.http.jsonp(this.loginUrl, 'callback');
- return this.http.post(this.loginUrl, user, httpOptions).pipe(
- tap(_ => this.log('logging in ' + user)),
- catchError(this.handleError('login'))
- );
- }
Add Comment
Please, Sign In to add comment