Commit Graph

8 Commits

Author SHA1 Message Date
ekzyis 5c225c1f25 Add logout button to /user 2023-11-07 14:02:25 +01:00
ekzyis 4e343d49d0 implement login with vue
* use vue router
* use pinia
* use tailwindcss
* use vite
* transform /api/login and /api/login/callback into JSON APIs
* add Access-Control-Allow-Credentials header
* add TODO about JSON errors
2023-11-07 09:06:35 +01:00
ekzyis 9a87fe7342 Rename to HandleInvoiceStatus 2023-11-03 23:43:56 +01:00
ekzyis edfbd2cc92 Test logout 2023-11-03 23:38:23 +01:00
ekzyis e2a09ccdd1 refactor: put test hooks and boilerplate into own package 2023-11-03 21:17:04 +01:00
ekzyis fc6fb9914e Test login + callback 2023-11-03 20:34:21 +01:00
ekzyis c66e96bf3f refactor: fix init and use DI
* fix init misuse which makes running tests impossible since tests are run inside a temporary test directory which breaks env loading

* use dependency injection pattern for server creation and global server context in route handlers
2023-11-03 20:34:21 +01:00
ekzyis 7558655458 refactor: Structure code into different packages
I have put too much code into the same files.

Also, I put everything into the same package: main.

This package is only meant for executables.

Therefore, I have refactored my code to use multiple packages. These packages also guarantee separation of concerns since Golang doesn't allow cyclic imports.
2023-09-10 23:13:08 +02:00