Change margin of success page (#316)

This commit is contained in:
Hidetake Iwata
2020-06-24 00:53:51 +09:00
committed by GitHub
parent e8161d5a47
commit c2b0c101af
2 changed files with 14 additions and 2 deletions

View File

@@ -12,6 +12,18 @@ func main() {
w.Header().Add("content-type", "text/html")
_, _ = w.Write([]byte(templates.AuthCodeBrowserSuccessHTML))
})
log.Printf("http://localhost:8000/AuthCodeBrowserSuccessHTML")
http.HandleFunc("/", func(w http.ResponseWriter, r *http.Request) {
w.Header().Add("content-type", "text/html")
_, _ = w.Write([]byte(`
<html>
<body>
<ul>
<li><a href="AuthCodeBrowserSuccessHTML">AuthCodeBrowserSuccessHTML</a></li>
</ul>
</body>
</html>
`))
})
log.Printf("http://localhost:8000")
log.Fatal(http.ListenAndServe("127.0.0.1:8000", nil))
}