unmojang / drasl

Yggdrasil-compatible API server for Minecraft
GNU General Public License v3.0
118 stars 19 forks source link

Add a config option for accessing API endpoints without a subdirectory #59

Closed catfromplan9 closed 7 months ago

catfromplan9 commented 7 months ago

This is useful for users who would like to attempt more advanced configurations e.g. using unsupported launchers by editing hosts file and installing a self signed SSL certificate. So /account/users/profiles/minecraft/player is also accessible via /users/profiles/minecraft/player

evan-goode commented 7 months ago

This should already work: https://github.com/unmojang/drasl/blob/72d3b1cd328e55370da0efd1b94f2b624487a50f/main.go#L206

All the routes should already be accessible without the /account, /services etc. prefix.

catfromplan9 commented 7 months ago

This should already work:

https://github.com/unmojang/drasl/blob/72d3b1cd328e55370da0efd1b94f2b624487a50f/main.go#L206

All the routes should already be accessible without the /account, /services etc. prefix.

Oh, wonderful, thank you!