mirror of
https://github.com/MedzikUser/go-pingbot
synced 2024-08-14 15:06:49 +00:00
17 lines
236 B
Go
17 lines
236 B
Go
package api
|
|
|
|
import (
|
|
"github.com/gin-gonic/gin"
|
|
)
|
|
|
|
func ApplyRoutes(r *gin.Engine) {
|
|
api := r.Group("/api")
|
|
{
|
|
api.GET("/url", GetAll)
|
|
api.POST("/url", Insert)
|
|
api.DELETE("/url/:url", Delete)
|
|
|
|
api.GET("/status", Status)
|
|
}
|
|
}
|