Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
update to generator service and generator search component
  • Loading branch information
rrc12004 committed Mar 4, 2019
1 parent a2af557 commit abfe41d
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
4 changes: 3 additions & 1 deletion src/app/generator-search/generator-search.component.ts
@@ -1,4 +1,6 @@
import { Component, OnInit } from '@angular/core';
import { GeneratorService } from '../services/generator.service';
import { Router } from '@angular/router';

@Component({
selector: 'app-generator-search',
Expand All @@ -7,7 +9,7 @@ import { Component, OnInit } from '@angular/core';
})
export class GeneratorSearchComponent implements OnInit {

constructor() { }
constructor(private data: GeneratorService, private router: Router) { }

ngOnInit() {
}
Expand Down
2 changes: 1 addition & 1 deletion src/app/services/generator.service.ts
Expand Up @@ -8,7 +8,7 @@ export class GeneratorService {

constructor(private http: HttpClient) { }

getUser(token) {
getGenerators(token) {
return this.http.get('http://sd5-backend.engr.uconn.edu/user/generators', {
headers: {
Authorization: 'Bearer ' + token
Expand Down

0 comments on commit abfe41d

Please sign in to comment.