1 parent
bf50da525e
commit
39c27b0de3
9 files changed
+386
-115
No files matched your search
@@ -3,11 +3,14 @@ package server
|
||||
import (
|
||||
"net/http"
|
||||
"scm/api"
|
||||
"scm/utils"
|
||||
)
|
||||
|
||||
func Configure() {
|
||||
http.Handle("/", api.SpaHandler(http.FS(api.Frontend)))
|
||||
http.HandleFunc("/api/certs", api.Certs)
|
||||
http.HandleFunc("/api/certs/root", api.RootCert)
|
||||
http.HandleFunc("/api/certs/create", api.CreateCert)
|
||||
http.HandleFunc("/api/certs/delete", api.DeleteCert)
|
||||
utils.CheckOrCreateRootKeyCertificate()
|
||||
}
|
||||
Reference in new issue
Block a user