villChurch / AnimalCrossingNewHorizonAPI

API for Animal Crossing New Horizon data.
MIT License
0 stars 0 forks source link

Move the location of the swagger docs to load on / #2

Closed villChurch closed 4 years ago

villChurch commented 4 years ago

Currently the swagger-ui docs load at swagger-ui/index.html?configUrl=/acnhapi/swagger-config instead of / as they should do.

This means that if someone visits https://nooksinfo.co.uk or https://nooksinfo.com they get redirected to http://nooksinfo.com/swagger-ui/index.html?configUrl=/acnhapi/swagger-config instead of it just showing the swagger ui where they are.

Whilst this is changing the request from https to http, due to how the load balancing is done, this doesn't have any real security impact as it's not transferring confidential information anyways just a nice to have.

villChurch commented 4 years ago

No longer needed now because of NGINX