a6f55b59 by astaxie

beego: add link in the admin console

1 parent c188cbbc
Showing 1 changed file with 6 additions and 6 deletions
...@@ -55,12 +55,12 @@ func init() { ...@@ -55,12 +55,12 @@ func init() {
55 func adminIndex(rw http.ResponseWriter, r *http.Request) { 55 func adminIndex(rw http.ResponseWriter, r *http.Request) {
56 rw.Write([]byte("Welcome to Admin Dashboard\n")) 56 rw.Write([]byte("Welcome to Admin Dashboard\n"))
57 rw.Write([]byte("There are servral functions:\n")) 57 rw.Write([]byte("There are servral functions:\n"))
58 rw.Write([]byte("1. Record all request and request time, http://localhost:8088/qps\n")) 58 rw.Write([]byte("1. Record all request and request time, <a href='/qps'>http://localhost:8088/qps</a>\n"))
59 rw.Write([]byte("2. Get runtime profiling data by the pprof, http://localhost:8088/prof\n")) 59 rw.Write([]byte("2. Get runtime profiling data by the pprof, <a href='/prof'>http://localhost:8088/prof</a>\n"))
60 rw.Write([]byte("3. Get healthcheck result from http://localhost:8088/healthcheck\n")) 60 rw.Write([]byte("3. Get healthcheck result from <a href='/healthcheck'>http://localhost:8088/healthcheck</a>\n"))
61 rw.Write([]byte("4. Get current task infomation from taskhttp://localhost:8088/task \n")) 61 rw.Write([]byte("4. Get current task infomation from task <a href='/task'>http://localhost:8088/task</a> \n"))
62 rw.Write([]byte("5. To run a task passed a param http://localhost:8088/runtask\n")) 62 rw.Write([]byte("5. To run a task passed a param <a href='/runtask'>http://localhost:8088/runtask</a>\n"))
63 rw.Write([]byte("6. Get all confige & router infomation http://localhost:8088/listconf\n")) 63 rw.Write([]byte("6. Get all confige & router infomation <a href='/listconf'>http://localhost:8088/listconf</a>\n"))
64 64
65 } 65 }
66 66
......
Styling with Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!