Skip to content

Commit

Permalink
ports
Browse files Browse the repository at this point in the history
  • Loading branch information
TimHi committed Nov 7, 2023
1 parent db4f308 commit 21bf68f
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion backend/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ COPY . .

RUN go build -o main .

EXPOSE 9007
EXPOSE 8090

# Run
CMD ["./main"]
2 changes: 1 addition & 1 deletion backend/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -20,5 +20,5 @@ func main() {
AllowOrigins: []string{"*"},
}))
e.GET("/random-object", api.GetRandomRoadsideObject)
e.Logger.Fatal(e.Start(":9007"))
e.Logger.Fatal(e.Start(":8090"))
}
2 changes: 1 addition & 1 deletion frontend/src/views/HomeView.vue
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import RoadsideObject from '../components/RoadsideObject.vue';
import type { RoadsideObjectModel } from '../model/RoadsideObjectModel'
import { ref } from 'vue';
const randomObjectUrl = 'http://0.0.0.0:9007/random-object'; // Replace with your API endpoint URL
const randomObjectUrl = 'https://0.0.0.0:9007/random-object'; // Replace with your API endpoint URL
const roadsideObject = ref<RoadsideObjectModel | undefined>(undefined)
fetchRoadsideObject().then((r) => roadsideObject.value = r)
Expand Down

0 comments on commit 21bf68f

Please sign in to comment.