cors settings
parent
aff99a8124
commit
9bfd8bad41
|
@ -2,6 +2,7 @@ package main
|
|||
|
||||
import (
|
||||
"github.com/gin-gonic/gin"
|
||||
"github.com/gin-contrib/cors"
|
||||
"gitlab.libraryofcode.org/engineering/certificate-api/routes"
|
||||
)
|
||||
|
||||
|
@ -13,5 +14,11 @@ func main() {
|
|||
router.POST("/parse", routes.GetCertificateInformationEncoded)
|
||||
router.POST("/pgp", routes.GetOpenPGPInformationEncoded)
|
||||
|
||||
|
||||
router.POST("/encoding/pgp/armor-binary", routes.PGPArmorToBinary)
|
||||
router.POST("/encoding/x509/pem-der", routes.X509PEMToDER)
|
||||
router.POST("/encoding/x509/der-pem", routes.X509DERtoPEM)
|
||||
|
||||
router.Use(cors.Default())
|
||||
router.Run()
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue