git link
This commit is contained in:
@@ -35,10 +35,6 @@ func Finance(w http.ResponseWriter, r *http.Request) { http.ServeFile(w, r, "./s
|
||||
func Cinema(w http.ResponseWriter, r *http.Request) { http.ServeFile(w, r, "./static/cinema.html") }
|
||||
func Cyber(w http.ResponseWriter, r *http.Request) { http.ServeFile(w, r, "./static/cyber.html") }
|
||||
func About(w http.ResponseWriter, r *http.Request) { http.ServeFile(w, r, "./static/about.html") }
|
||||
func GitPage(w http.ResponseWriter, r *http.Request) { http.ServeFile(w, r, "./static/gitpage.html") }
|
||||
func GitPageTicTacToe(w http.ResponseWriter, r *http.Request) {
|
||||
http.ServeFile(w, r, "./static/gitpages/TicTacToe.html")
|
||||
}
|
||||
|
||||
func Styles(w http.ResponseWriter, r *http.Request) { http.ServeFile(w, r, "./static/styles.css") }
|
||||
|
||||
@@ -110,10 +106,9 @@ func main() {
|
||||
http.HandleFunc("/finance", Finance)
|
||||
http.HandleFunc("/cinema", Cinema)
|
||||
http.HandleFunc("/cyber", Cyber)
|
||||
//http.HandleFunc("/gitpage", GitPage)
|
||||
//http.HandleFunc("/gitpage/TicTacToe", GitPageTicTacToe)
|
||||
//http.HandleFunc("/trades", TradesHandler)
|
||||
//http.HandleFunc("/api/prices", PricesHandler)
|
||||
http.HandleFunc("/git", func(w http.ResponseWriter, r *http.Request) {
|
||||
http.Redirect(w, r, "https://git.samantha42.xyz", http.StatusFound)
|
||||
})
|
||||
|
||||
fmt.Printf("running on http://localhost:%s/\n", *port)
|
||||
if err := http.ListenAndServe(":"+*port, nil); err != nil {
|
||||
|
||||
Reference in New Issue
Block a user