certificate-api/cmd/main.go

18 lines
387 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)
2021-07-02 16:57:38 -04:00
router.POST("/pgp", routes.GetOpenPGPInformationEncoded)
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
}