Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
V
VRClassroom
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Danny Pires
VRClassroom
Commits
de3e18f1
Commit
de3e18f1
authored
May 02, 2021
by
Geovanny Vera
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Calling API instead of local
parent
ea5d4777
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
4 deletions
+4
-4
main.js
src/Instancing/main.js
+2
-2
HttpService.cpp
src/Source/VRClassroom/Private/HttpService.cpp
+2
-2
No files found.
src/Instancing/main.js
View file @
de3e18f1
...
...
@@ -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
:
{
...
...
src/Source/VRClassroom/Private/HttpService.cpp
View file @
de3e18f1
...
...
@@ -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
();
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment