No changes made

This commit is contained in:
2025-04-16 12:47:04 -04:00
commit 1ed3b0c2d4
98 changed files with 8857 additions and 0 deletions

View File

@@ -0,0 +1,25 @@
package database
import (
"github.com/labstack/echo/v4"
)
type CustomContext struct {
echo.Context
Db *Database
}
func CreateDatabaseMiddleware() echo.MiddlewareFunc {
return func(next echo.HandlerFunc) echo.HandlerFunc {
return func(c echo.Context) error {
cc := &CustomContext{
Context: c,
Db: GetNewDatabase(),
}
res := next(cc)
return res
}
}
}