This commit is contained in:
samantha42
2026-03-20 22:30:45 +01:00
parent 81203af783
commit 90c70be734
4 changed files with 5 additions and 966 deletions
+3 -8
View File
@@ -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 {