Files
scm/server/Configure.go
T
wt e6526fb780
Build / Build (push) Successful in 19s
added createrootcertificateifnotexists
2025-07-21 22:11:04 +07:00

15 lines
329 B
Go

package server
import (
"net/http"
"scm/api"
)
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)
}