Use relative path for API
This allows use behind reverse proxies that modify the path
This commit is contained in:
parent
9839997ad7
commit
8056d2849e
@ -18,7 +18,7 @@ app.controller("mates", ["$scope", "$http", "$interval", function($scope, $http,
|
||||
|
||||
$scope.lastMate = "";
|
||||
|
||||
$http.get("/mates")
|
||||
$http.get("mates")
|
||||
.then((r) =>
|
||||
{
|
||||
var json = angular.fromJson(r.data);
|
||||
@ -33,7 +33,7 @@ app.controller("mates", ["$scope", "$http", "$interval", function($scope, $http,
|
||||
// Don't bother updating during a cooldown
|
||||
if ($scope.cooldown) return;
|
||||
|
||||
$http.post("/mates")
|
||||
$http.post("mates")
|
||||
.then((r) =>
|
||||
{
|
||||
var json = angular.fromJson(r.data);
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user