certificate-api/cmd/main.go

17 lines
329 B
Go
Raw Normal View History

2020-12-11 00:18:06 -05:00
package main
import (
"github.com/gin-gonic/gin"
"gitlab.libraryofcode.org/engineering/certificate-api/routes"
)
func main() {
router := gin.Default()
router.GET("/", routes.GetCertificateInfo)
2020-12-23 20:12:28 -05:00
router.GET("/tls", routes.GetCertificateInfo)
router.POST("/parse", routes.GetCertificateInformationEncoded)
2020-12-11 00:18:06 -05:00
2020-12-11 00:25:47 -05:00
router.Run()
2020-12-11 00:18:06 -05:00
}