Moved config and finished JWT module

This commit is contained in:
2025-02-10 22:10:03 +11:00
parent 04049bb73a
commit e73805a02d
13 changed files with 237 additions and 69 deletions

View File

@@ -4,6 +4,7 @@ import (
"database/sql"
"net/http"
"projectreshoot/config"
"projectreshoot/middleware"
"github.com/rs/zerolog"
@@ -11,7 +12,7 @@ import (
// Returns a new http.Handler with all the routes and middleware added
func NewServer(
config *Config,
config *config.Config,
logger *zerolog.Logger,
conn *sql.DB,
) http.Handler {