mirror of
https://github.com/NginxProxyManager/nginx-proxy-manager.git
synced 2025-08-28 11:40:04 +00:00
Version 3 starter
This commit is contained in:
17
backend/internal/api/schema/update_certificate_authority.go
Normal file
17
backend/internal/api/schema/update_certificate_authority.go
Normal file
@@ -0,0 +1,17 @@
|
||||
package schema
|
||||
|
||||
import "fmt"
|
||||
|
||||
// UpdateCertificateAuthority is the schema for incoming data validation
|
||||
func UpdateCertificateAuthority() string {
|
||||
return fmt.Sprintf(`
|
||||
{
|
||||
"type": "object",
|
||||
"additionalProperties": false,
|
||||
"properties": {
|
||||
"name": %s,
|
||||
"acme2_url": %s
|
||||
}
|
||||
}
|
||||
`, stringMinMax(1, 100), stringMinMax(8, 255))
|
||||
}
|
Reference in New Issue
Block a user