Commit de3e18f1 authored by Geovanny Vera's avatar Geovanny Vera

Calling API instead of local

parent ea5d4777
......@@ -21,8 +21,8 @@ async function main(){
const ip = await publicIp.v4();
UE_CONFIG.ip = ip;
//const api = 'https://api.ev3.me/';
const api = 'http://localhost:1337/';
const api = 'https://api.ev3.me/';
//const api = 'http://localhost:1337/';
const response = await fetch(`${api}instances/add-world-server`, {
headers: {
......
......@@ -72,8 +72,8 @@ void UHttpService::SetRequestHeaders(TSharedRef<IHttpRequest>& Request) {
TSharedRef<IHttpRequest> UHttpService::RequestWithRoute(FString Subroute) {
// I have to set it here because for some reason if I set it on the constructor it becomes empty when it reaches here
// TODO: Figure out why that happens and fix it to remove this line
//FString VRCAPIPath1 = FString(TEXT("https://api.ev3.me/"));
FString VRCAPIPath1 = FString(TEXT("http://localhost:1337/"));
FString VRCAPIPath1 = FString(TEXT("https://api.ev3.me/"));
//FString VRCAPIPath1 = FString(TEXT("http://localhost:1337/"));
Http = &FHttpModule::Get();
TSharedRef<IHttpRequest> Request = Http->CreateRequest();
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment