15 lines
329 B
Go
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)
|
|
}
|