Login - add trailing slash to api_endpoint url

ref #9
This commit is contained in:
Philipp Dormann 2021-03-23 18:10:58 +01:00
parent 81b2db60ec
commit b80a832256
1 changed files with 3 additions and 0 deletions

View File

@ -138,6 +138,9 @@
class="flex flex-col pt-3 md:pt-8"
onsubmit="event.preventDefault();"
on:submit={() => {
if (api_endpoint_input.substr(-1) !== "/") {
api_endpoint_input = api_endpoint_input + "/";
}
api_endpoint.set(api_endpoint_input);
}}
>