Bulk commit
This commit is contained in:
@ -1,8 +1,6 @@
|
||||
package routers
|
||||
|
||||
import (
|
||||
"log/slog"
|
||||
|
||||
"git.kocoder.xyz/kocoded/vt/model"
|
||||
"git.kocoder.xyz/kocoded/vt/query"
|
||||
"git.kocoder.xyz/kocoded/vt/utils"
|
||||
@ -10,11 +8,11 @@ import (
|
||||
)
|
||||
|
||||
type firmaRouter struct {
|
||||
logger *slog.Logger
|
||||
utils.Application
|
||||
}
|
||||
|
||||
func RegisterFirmaRouter(group fiber.Router, appCtx *utils.Application) {
|
||||
router := &firmaRouter{logger: appCtx.Logger}
|
||||
func RegisterFirmaRouter(group fiber.Router, appCtx utils.Application) {
|
||||
router := &firmaRouter{Application: appCtx}
|
||||
|
||||
group.Post("/new", router.createFirma)
|
||||
group.Get("/all", router.getAllFirmen)
|
||||
|
Reference in New Issue
Block a user