2024-05-03 17:11:56 +00:00
|
|
|
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")
|
|
|
|
|
2024-05-08 10:24:34 +00:00
|
|
|
v1.Get("/crons", CookieProtected, Crons)
|
2024-05-04 11:52:47 +00:00
|
|
|
v1.Get("/nodes", MoneroNodes)
|
2024-05-04 10:24:47 +00:00
|
|
|
v1.Post("/nodes", AddNode)
|
2024-05-06 18:08:01 +00:00
|
|
|
v1.Get("/nodes/id/:id", MoneroNode)
|
2024-05-06 10:19:17 +00:00
|
|
|
v1.Get("/nodes/logs", ProbeLogs)
|
2024-05-06 06:19:48 +00:00
|
|
|
v1.Get("/fees", NetFee)
|
2024-05-06 06:35:15 +00:00
|
|
|
v1.Get("/countries", Countries)
|
2024-05-04 12:52:22 +00:00
|
|
|
v1.Get("/job", CheckProber, GiveJob)
|
2024-05-04 18:42:47 +00:00
|
|
|
v1.Post("/job", CheckProber, ProcessJob)
|
2024-05-03 17:11:56 +00:00
|
|
|
}
|