13 lines
275 B
Go
13 lines
275 B
Go
package routes
|
|
|
|
import "github.com/gofiber/fiber/v2"
|
|
|
|
func Index(c *fiber.Ctx) error {
|
|
c.Set("Content-Type", "text/html")
|
|
return c.SendString(`
|
|
<form method="post" action="/fetch">
|
|
<input name="url" required />
|
|
<button type="submit">Fetch</button>
|
|
</form>
|
|
`)
|
|
}
|