interactions yay!!
This commit is contained in:
parent
b9a05bedf9
commit
f60033a3e4
30 changed files with 716 additions and 44 deletions
14
testing/testing.go
Normal file
14
testing/testing.go
Normal file
|
@ -0,0 +1,14 @@
|
|||
package testing
|
||||
|
||||
import "github.com/gofiber/fiber/v3"
|
||||
|
||||
type TestingController struct{}
|
||||
|
||||
func (t *TestingController) Routes(r fiber.Router) {
|
||||
r.Get("/picker/:version?", t.Picker)
|
||||
}
|
||||
|
||||
func (t *TestingController) Picker(c fiber.Ctx) error {
|
||||
version := c.Params("version", "main")
|
||||
return c.Render("picker/"+version, fiber.Map{})
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue