Use the webpack dev server proxy for requests

This commit is contained in:
Gabe Kangas
2022-05-08 23:28:54 -07:00
parent 2a8b474fa1
commit 3b3f785984
4 changed files with 11 additions and 5 deletions

View File

@@ -1,6 +1,6 @@
import ServerStatus from '../interfaces/server-status.model';
const ENDPOINT = `http://localhost:8080/api/status`;
const ENDPOINT = `/api/status`;
class ServerStatusService {
public static async getStatus(): Promise<ServerStatus> {