diff options
author | Zach Berwaldt <zberwaldt@tutamail.com> | 2024-03-06 21:53:07 -0500 |
---|---|---|
committer | Zach Berwaldt <zberwaldt@tutamail.com> | 2024-03-06 21:53:07 -0500 |
commit | 5fa57845052655883120ba4d19a85d8756fb8d8c (patch) | |
tree | d2d5ad1dd3fd8d9acaca9ced09612b50218f06b0 /fe/vite.config.ts | |
parent | cf2113e77edabf8e3a632c7b76c769752039ba88 (diff) |
[FEAT] Refactor API main file and models
This commit refactors the `main.go` file in the API directory, as well as the related models in the `models.go` file. The changes include:
- Reordering imports and removing unnecessary imports
- Fixing error messages to be more descriptive
- Handling database connections more efficiently with deferred closures
- Handling errors and returning appropriate error responses
- Adding proper JSON bindings for POST requests
- Adding new views in the database scripts for aggregated statistics and daily user statistics
No changes were made to imports and requires.
Diffstat (limited to 'fe/vite.config.ts')
0 files changed, 0 insertions, 0 deletions