Commit graph

11 commits

Author SHA1 Message Date
d56a8eb7bf
feature: Change state management from global variables to object passing
This restructures dbcore (now the db package) and jwtcore (now the jwt
package) to use a single struct. There is now a state package, which
contains a struct with the full application state.

After this, instead of initializing the API routes directly in the main
function, the state object gets passed, and the API routes get
initialized with their accompanying code.

One fix done to reduce memory usage and increase speed is that the
validator object is now persistent across requests, instead of
recreating it each time. This should speed things up slightly, and
improve memory usage.

One additional chore done is that the database models have been moved to
be a seperate file from the DB initialization itself.
2025-03-21 12:59:51 -04:00
cf90ddb104
chore: Strip unneeded components from code. 2025-02-16 19:12:17 -05:00
1e1a330a4b
feature: Refactors backend runtime's communication mechanism to be more stable. 2025-01-06 01:24:11 -05:00
49db323e81
chore: Prepare for frontend support by moving the Go module files.
This moves the Go module files to the root of the project and fixes
all of the imports.
2024-12-28 15:37:32 -05:00
201007f7a0
chore: Make lookup fields in the API omit when they're empty.
This makes the API more accurate to the previous API's responses.
2024-12-28 15:26:48 -05:00
538c5b6c51
chore: Adds "day-one"/v2.0.1 bug fixes.
All checks were successful
Release code / build (push) Successful in 11m41s
This fixes database error reporting, as well as majorly fixes users
not being able to authenticate to the API if you used the automated
migration setup, as the password would remain in hex encoding.

We now decode the hexadecimal and then change it to the far more
compact base64 encoding before adding it to the database. This should
fix login, and not cause 500 Interal Server Errors anymore.

Sorry folks!
2024-12-27 00:10:13 -05:00
5c45533371
feature: Adds autostart support. 2024-12-23 22:03:59 -05:00
bcf97fde6d
fix: Fixes API routes. 2024-12-23 20:47:01 -05:00
greysoh
216936fe50
feature: Adds backend lookup support. 2024-12-23 16:47:35 -05:00
greysoh
3484760f41
feature: Adds backend removal support. 2024-12-23 16:18:35 -05:00
greysoh
0b73b4aa47
feature: Adds backend system and basic API.
This adds the backend API, as well as backend infrastructure, including
autostarting and basic communication between the Goroutine + Application.
2024-12-23 15:52:16 -05:00