xmr-remote-nodes/handler/routes.go

22 lines
385 B
Go
Raw Normal View History

package handler
import (
"github.com/gofiber/fiber/v2"
)
func AppRoute(app *fiber.App) {
app.Post("/auth/login", Login)
app.Post("/auth/logout", Logout)
}
func V1Api(app *fiber.App) {
v1 := app.Group("/api/v1")
v1.Get("/prober", Prober)
v1.Post("/prober", Prober)
v1.Get("/nodes", MoneroNodes)
2024-05-04 10:24:47 +00:00
v1.Post("/nodes", AddNode)
2024-05-04 12:27:21 +00:00
v1.Get("/job", GiveJob)
v1.Get("/crons", Crons)
}