mirror of
https://github.com/Yourdaylight/CloudGame.git
synced 2026-07-28 01:25:17 +00:00
feat: add cloud functions
This commit is contained in:
@@ -27,6 +27,7 @@
|
||||
"@angular-devkit/build-angular": "^14.2.9",
|
||||
"@angular/cli": "~14.2.9",
|
||||
"@angular/compiler-cli": "^14.2.0",
|
||||
"@azure/static-web-apps-cli": "^1.1.6",
|
||||
"@types/jasmine": "~4.0.0",
|
||||
"jasmine-core": "~4.3.0",
|
||||
"karma": "~6.4.0",
|
||||
|
||||
@@ -1,10 +1,17 @@
|
||||
import { Component } from '@angular/core';
|
||||
import { HttpClient } from '@angular/common/http';
|
||||
|
||||
@Component({
|
||||
selector: 'app-root',
|
||||
template: `<div>{{message}}</div>`,
|
||||
templateUrl: './app.component.html',
|
||||
styleUrls: ['./app.component.scss'],
|
||||
})
|
||||
export class AppComponent {
|
||||
message = '';
|
||||
isCollapsed = false;
|
||||
}
|
||||
constructor(private http: HttpClient) {
|
||||
this.http.get('/api/message')
|
||||
.subscribe((resp: any) => this.message = resp.text);
|
||||
}
|
||||
}
|
||||
@@ -7,7 +7,7 @@ import { NzMessageService } from 'ng-zorro-antd/message';
|
||||
providedIn: 'root',
|
||||
})
|
||||
export class ApiService {
|
||||
_baseUrl = 'http://127.0.0.1:5000/api/v1';
|
||||
_baseUrl = '/api/';
|
||||
constructor(
|
||||
private httpClient: HttpClient,
|
||||
private dialogService: NzMessageService
|
||||
|
||||
Reference in New Issue
Block a user