diff --git a/cmd/http/views/index.hbs b/cmd/http/views/index.hbs new file mode 100644 index 0000000..5560027 --- /dev/null +++ b/cmd/http/views/index.hbs @@ -0,0 +1,90 @@ + + + + + + BTC Pay Checker + + + +
+
+
+

BTC Pay Checker

+
+ +
+
+ +
+

How to use the /order POST endpoint

+

This endpoint allows you to create a new order. It requires a JSON body with the following fields:

+ +

The endpoint will return a JSON response with the following fields:

+ +
+ + diff --git a/internal/api/handler/payment.go b/internal/api/handler/order.go similarity index 100% rename from internal/api/handler/payment.go rename to internal/api/handler/order.go diff --git a/internal/api/server.go b/internal/api/server.go index e44a8f3..17664ce 100644 --- a/internal/api/server.go +++ b/internal/api/server.go @@ -138,7 +138,7 @@ func (s *RestServer) loadViews(imagesDir string) { s.app.Static("/images", imagesDir) s.app.Get("/", func(c *fiber.Ctx) error { - return c.Render("upload", fiber.Map{}) + return c.Render("index", fiber.Map{}) }) s.app.Get("/error", func(c *fiber.Ctx) error {