mirror of
https://github.com/ditatompel/xmr-remote-nodes.git
synced 2025-01-08 05:52:10 +07:00
19 lines
301 B
Go
19 lines
301 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("/crons", Crons)
|
||
|
}
|