feat: Update internal HTTP server to use Fiber v2 with new routes and middleware configuration
This commit is contained in:
14
internal/http/router.go
Normal file
14
internal/http/router.go
Normal file
@@ -0,0 +1,14 @@
|
||||
package http
|
||||
|
||||
import (
|
||||
"git.dev-null.rocks/alexohneander/gosearch/internal/controller"
|
||||
"github.com/gofiber/fiber/v2"
|
||||
)
|
||||
|
||||
func configureRoutes(app *fiber.App) *fiber.App {
|
||||
// Index
|
||||
app.Get("/", controller.Index)
|
||||
app.Get("/test", controller.Index)
|
||||
|
||||
return app
|
||||
}
|
Reference in New Issue
Block a user