mirror of
https://github.com/lordmathis/lemma.git
synced 2025-11-06 16:04:23 +00:00
Rework db package to make it testable
This commit is contained in:
@@ -1,3 +1,4 @@
|
||||
// Package main contains the main entry point for the application. It sets up the server, database, and other services, and starts the server.
|
||||
package main
|
||||
|
||||
import (
|
||||
@@ -61,7 +62,7 @@ func main() {
|
||||
authMiddleware := auth.NewMiddleware(jwtManager)
|
||||
|
||||
// Initialize session service
|
||||
sessionService := auth.NewSessionService(database.DB, jwtManager)
|
||||
sessionService := auth.NewSessionService(database, jwtManager)
|
||||
|
||||
// Set up router
|
||||
r := chi.NewRouter()
|
||||
|
||||
Reference in New Issue
Block a user