mirror of
https://github.com/0xJacky/nginx-ui.git
synced 2025-05-11 18:35:51 +02:00
chore: clean code
This commit is contained in:
parent
9cbbd429d9
commit
70f4f63524
3 changed files with 16 additions and 16 deletions
|
@ -10,13 +10,13 @@ import (
|
|||
|
||||
// GetPublicKey generates a new ED25519 key pair and registers it in the cache
|
||||
func GetPublicKey(c *gin.Context) {
|
||||
sign, err := crypto.GetCryptoParams()
|
||||
params, err := crypto.GetCryptoParams()
|
||||
if err != nil {
|
||||
api.ErrHandler(c, err)
|
||||
return
|
||||
}
|
||||
|
||||
c.JSON(http.StatusOK, gin.H{
|
||||
"public_key": sign.PublicKey,
|
||||
"public_key": params.PublicKey,
|
||||
})
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue