sdkman / sdkman-hooks

An API responsible for serving up pre- and post- hooks
Other
5 stars 23 forks source link

Legacy selfupdate support #35

Closed marc0der closed 2 years ago

marc0der commented 2 years ago

The selfupdates will now be driven by a beta subdomain on the URL. All selfupdates originating from this domain will be forwarded to the /selfupdate/beta route. All selfupdates from the api subdomain will be sent to the /selfupdate/stable route.

This PR also supports cases where legacy beta installations call the api subdomain, but instead use a beta=true query parameter. These calls will be sent to the /selfupdate/stable route, but will propagate the beta query parameter to switch on beta behaviour.