Clean up + add webserver
This commit is contained in:
parent
2eed16376f
commit
67e2e4d306
7 changed files with 216 additions and 68 deletions
13
routes/index.go
Normal file
13
routes/index.go
Normal 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>
|
||||
`)
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue