Update import paths

This commit is contained in:
2025-10-23 19:51:28 +01:00
parent 21ebc9c34b
commit b098915ab9
44 changed files with 113 additions and 111 deletions

View File

@@ -4,9 +4,9 @@ import (
"net/http"
"time"
httpHelpers "synlotto-website/helpers/http"
httpHelpers "synlotto-website/internal/helpers/http"
"synlotto-website/constants"
"synlotto-website/internal/platform/constants"
)
func Auth(required bool) func(http.HandlerFunc) http.HandlerFunc {

View File

@@ -5,7 +5,7 @@ import (
"net/http"
"runtime/debug"
templateHelpers "synlotto-website/helpers/template"
templateHelpers "synlotto-website/internal/helpers/template"
)
func Recover(next http.Handler) http.Handler {

View File

@@ -5,9 +5,9 @@ import (
"net/http"
"time"
session "synlotto-website/handlers/session"
session "synlotto-website/internal/handlers/session"
"synlotto-website/constants"
"synlotto-website/internal/platform/constants"
)
func SessionTimeout(next http.HandlerFunc) http.HandlerFunc {

View File

@@ -4,11 +4,11 @@ import (
"database/sql"
"net/http"
accountHandlers "synlotto-website/handlers/account"
lotteryDrawHandlers "synlotto-website/handlers/lottery/tickets"
accountHandlers "synlotto-website/internal/handlers/account"
lotteryDrawHandlers "synlotto-website/internal/handlers/lottery/tickets"
"synlotto-website/handlers"
"synlotto-website/middleware"
"synlotto-website/internal/handlers"
"synlotto-website/internal/http/middleware"
)
func SetupAccountRoutes(mux *http.ServeMux, db *sql.DB) {

View File

@@ -4,8 +4,8 @@ import (
"database/sql"
"net/http"
admin "synlotto-website/handlers/admin"
"synlotto-website/middleware"
admin "synlotto-website/internal/handlers/admin"
"synlotto-website/internal/http/middleware"
)
func SetupAdminRoutes(mux *http.ServeMux, db *sql.DB) {

View File

@@ -4,7 +4,7 @@ import (
"database/sql"
"net/http"
"synlotto-website/handlers"
"synlotto-website/internal/handlers"
)
func SetupResultRoutes(mux *http.ServeMux, db *sql.DB) {

View File

@@ -4,8 +4,8 @@ import (
"database/sql"
"net/http"
handlers "synlotto-website/handlers/statistics"
"synlotto-website/middleware"
handlers "synlotto-website/internal/handlers/statistics"
"synlotto-website/internal/http/middleware"
)
func SetupStatisticsRoutes(mux *http.ServeMux, db *sql.DB) {

View File

@@ -4,9 +4,9 @@ import (
"database/sql"
"net/http"
lotterySyndicateHandlers "synlotto-website/handlers/lottery/syndicate"
lotterySyndicateHandlers "synlotto-website/internal/handlers/lottery/syndicate"
"synlotto-website/middleware"
"synlotto-website/internal/http/middleware"
)
func SetupSyndicateRoutes(mux *http.ServeMux, db *sql.DB) {