14 lines
286 B
Go
14 lines
286 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/download/", api.CertKeyDownloadZip)
|
|
}
|