Skip to content

Commit

Permalink
More stuff to test monorepo
Browse files Browse the repository at this point in the history
  • Loading branch information
enzowritescode committed Jul 24, 2024
1 parent c8271d8 commit 25bf9ef
Show file tree
Hide file tree
Showing 2 changed files with 23 additions and 1 deletion.
3 changes: 2 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
.DS_Store
node_modules
node_modules
.idea
21 changes: 21 additions & 0 deletions api/main.go
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
package main

import (
"github.com/gorilla/mux"
"net/http"
)

func main() {
r := mux.NewRouter()

r.HandleFunc("/", func(w http.ResponseWriter, r *http.Request) {
w.WriteHeader(http.StatusOK)
_, _ = w.Write([]byte("Hello world"))
}).Methods(http.MethodGet)

err := http.ListenAndServe(":8080", r)

if err != nil {
panic(err)
}
}

0 comments on commit 25bf9ef

Please sign in to comment.