Clean up + add webserver

This commit is contained in:
William Bouzourène 2026-02-15 20:50:58 +01:00
parent 2eed16376f
commit 67e2e4d306
Signed by: bouzoure
GPG key ID: 423440D735B56BE2
7 changed files with 216 additions and 68 deletions

13
routes/index.go Normal file
View file

@ -0,0 +1,13 @@
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>
`)
}