mirror of
https://github.com/zhengkai/orca.git
synced 2026-02-13 02:02:26 +08:00
up
This commit is contained in:
@@ -6,6 +6,8 @@ import (
|
||||
"project/core"
|
||||
"project/zj"
|
||||
"time"
|
||||
|
||||
"github.com/prometheus/client_golang/prometheus/promhttp"
|
||||
)
|
||||
|
||||
// Server ...
|
||||
@@ -13,6 +15,7 @@ func Server() {
|
||||
|
||||
mux := http.NewServeMux()
|
||||
|
||||
mux.Handle(`/_metrics`, promhttp.Handler())
|
||||
mux.HandleFunc(`/`, core.NewCore().WebHandle)
|
||||
|
||||
s := &http.Server{
|
||||
|
||||
Reference in New Issue
Block a user