xmr-remote-nodes/handler/routes.go
ditatompel 30b37b922f
Ability to list cron from CLI #2
Since `tbl_cron` will contain a few rows (for now just 1),
cron list function call is not using any arguments.

This commit also remove cron http handler and endpoint.
2024-05-18 20:13:00 +07:00

23 lines
489 B
Go

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("/nodes", MoneroNodes)
v1.Post("/nodes", AddNode)
v1.Get("/nodes/id/:id", MoneroNode)
v1.Get("/nodes/logs", ProbeLogs)
v1.Get("/fees", NetFee)
v1.Get("/countries", Countries)
v1.Get("/job", CheckProber, GiveJob)
v1.Post("/job", CheckProber, ProcessJob)
}