瀏覽代碼

Fix beer service to point to localhost

Matt Raible 7 年之前
父節點
當前提交
304c86810a
共有 3 個檔案被更改,包括 3349 行新增2 行删除
  1. 1
    1
      ionic-beer/package.json
  2. 1
    1
      ionic-beer/src/providers/beer-service.ts
  3. 3347
    0
      ionic-beer/yarn.lock

+ 1
- 1
ionic-beer/package.json 查看文件

1
 {
1
 {
2
   "name": "ionic-beer",
2
   "name": "ionic-beer",
3
-  "author": "Ionic Beer",
3
+  "author": "Matt Raible",
4
   "homepage": "https://github.com/oktadeveloper/spring-boot-ionic-example",
4
   "homepage": "https://github.com/oktadeveloper/spring-boot-ionic-example",
5
   "private": true,
5
   "private": true,
6
   "scripts": {
6
   "scripts": {

+ 1
- 1
ionic-beer/src/providers/beer-service.ts 查看文件

5
 
5
 
6
 @Injectable()
6
 @Injectable()
7
 export class BeerService {
7
 export class BeerService {
8
-  public API = 'https://ionic-server-acrodont-protyle.cfapps.io';
8
+  public API = 'http://localhost:8080';
9
   public BEER_API = this.API + '/beers';
9
   public BEER_API = this.API + '/beers';
10
 
10
 
11
   constructor(private http: Http) {}
11
   constructor(private http: Http) {}

+ 3347
- 0
ionic-beer/yarn.lock
文件差異過大導致無法顯示
查看文件