summaryrefslogtreecommitdiff
path: root/main.go
diff options
context:
space:
mode:
authorRobby Zambito <contact@robbyzambito.me>2025-08-02 20:01:05 -0400
committerRobby Zambito <contact@robbyzambito.me>2025-08-04 04:02:35 -0400
commit844f11df7a2cc74ff6dffd50e20095e8e9f3b2f4 (patch)
tree7290d00c4317c9996f4684e24b7336437e48c22c /main.go
parent3da02432526c7b6ea1433948009faeb91ecf2d19 (diff)
start endpoint handlers
Diffstat (limited to 'main.go')
-rw-r--r--main.go11
1 files changed, 11 insertions, 0 deletions
diff --git a/main.go b/main.go
index fba15c1..b9952b3 100644
--- a/main.go
+++ b/main.go
@@ -14,6 +14,10 @@ func main() {
http.StripPrefix("/", fs).ServeHTTP(w, r)
})
+ var logs [100]string
+
+ http.HandleFunc("/logs", createGetLogs(&logs))
+
http.HandleFunc("/foo", func(w http.ResponseWriter, r *http.Request) {
fmt.Fprintf(w, "foo!")
})
@@ -25,3 +29,10 @@ func main() {
fmt.Printf("Error starting server: %s\n", err)
}
}
+
+func createGetLogs(logs *[100]string) func(http.ResponseWriter, *http.Request) {
+ return func(w http.ResponseWriter, r *http.Request) {
+
+ }
+}
+