2024-05-04 00:11:56 +07:00
|
|
|
package handler
|
|
|
|
|
|
|
|
import (
|
|
|
|
"github.com/gofiber/fiber/v2"
|
|
|
|
)
|
|
|
|
|
|
|
|
func V1Api(app *fiber.App) {
|
|
|
|
v1 := app.Group("/api/v1")
|
|
|
|
|
2024-05-04 18:52:47 +07:00
|
|
|
v1.Get("/nodes", MoneroNodes)
|
2024-05-04 17:24:47 +07:00
|
|
|
v1.Post("/nodes", AddNode)
|
2024-05-07 01:08:01 +07:00
|
|
|
v1.Get("/nodes/id/:id", MoneroNode)
|
2024-05-06 17:19:17 +07:00
|
|
|
v1.Get("/nodes/logs", ProbeLogs)
|
2024-05-06 13:19:48 +07:00
|
|
|
v1.Get("/fees", NetFee)
|
2024-05-06 13:35:15 +07:00
|
|
|
v1.Get("/countries", Countries)
|
2024-05-04 19:52:22 +07:00
|
|
|
v1.Get("/job", CheckProber, GiveJob)
|
2024-05-05 01:42:47 +07:00
|
|
|
v1.Post("/job", CheckProber, ProcessJob)
|
2024-05-04 00:11:56 +07:00
|
|
|
}
|