ayamkv / frec-reloaded

a simple linktree type of website for myself probably made with svelte and pocketbase
https://raharja.eu.org
0 stars 0 forks source link

restructure files + use forms #2

Open ayamkv opened 1 year ago

ayamkv commented 1 year ago

so currently the click 'stats' method is not really safe, it exposes the api token to the client.

instead, we should use forms to send data to the server function

we'll have to : • move the handle onclick function from directus.jsmaybe to server.js and change it to handle form • remove VITE_ from the api and re generate the api token • use svelte built in env

ayamkv commented 1 year ago

i have to