Skip to content

Commit

Permalink
README
Browse files Browse the repository at this point in the history
  • Loading branch information
pkieltyka committed Apr 4, 2020
1 parent 014d4cc commit a9fe6ca
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -46,11 +46,14 @@ package main

import (
"net/http"

"github.com/go-chi/chi"
"github.com/go-chi/chi/middleware"
)

func main() {
r := chi.NewRouter()
r.Use(middleware.Logger)
r.Get("/", func(w http.ResponseWriter, r *http.Request) {
w.Write([]byte("welcome"))
})
Expand Down

0 comments on commit a9fe6ca

Please sign in to comment.