mirror of
https://github.com/ditatompel/xmr-remote-nodes.git
synced 2024-11-17 01:17:37 +00:00
21 lines
385 B
Go
21 lines
385 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("/prober", Prober)
|
|
v1.Post("/prober", Prober)
|
|
v1.Get("/nodes", MoneroNodes)
|
|
v1.Post("/nodes", AddNode)
|
|
v1.Get("/job", GiveJob)
|
|
v1.Get("/crons", Crons)
|
|
}
|