18 lines
387 B
Go
18 lines
387 B
Go
package main
|
|
|
|
import (
|
|
"github.com/gin-gonic/gin"
|
|
"gitlab.libraryofcode.org/engineering/certificate-api/routes"
|
|
)
|
|
|
|
func main() {
|
|
router := gin.Default()
|
|
|
|
router.GET("/", routes.GetCertificateInfo)
|
|
router.GET("/tls", routes.GetCertificateInfo)
|
|
router.POST("/parse", routes.GetCertificateInformationEncoded)
|
|
router.POST("/pgp", routes.GetOpenPGPInformationEncoded)
|
|
|
|
router.Run()
|
|
}
|