Shortened database/utils.ts by adding a 'Query Database' helper function to reduce boilerplate/copied code, also added functions form apping the Post, Account and Comment row. api/main.ts now has more unfinished endpoints and will now work using functions instead of doing everything inside of the routes, created a helpers.ts file to make it a bit more modular and easier to look over.

This commit is contained in:
Esad Mustafoski
2024-11-13 23:29:59 +01:00
parent 7a6152be51
commit b0f8a51cc8
6 changed files with 298 additions and 245 deletions

2
.gitignore vendored
View File

@@ -13,6 +13,8 @@ dist-ssr
.vite
*.local
*.sqlite
*.idea
.env
# Editor directories and files
.vscode/*