feat: database + service usage

This commit is contained in:
Andras Bacsai
2022-05-19 16:43:17 +02:00
parent 972f77c790
commit 1f25bc411f
6 changed files with 151 additions and 8 deletions

View File

@@ -74,7 +74,7 @@
onMount(async () => {
if (browser && window.location.hostname === 'demo.coolify.io' && !service.fqdn) {
service.fqdn = `http://${cuid()}.demo.coolify.io`;
await handleSubmit();
await post(`/services/${id}/${service.type}.json`, { ...service });
}
});
</script>