start setting up auth handler
This commit is contained in:
parent
82ac33ec66
commit
979a415b95
4 changed files with 62 additions and 0 deletions
15
internal/handler/auth.go
Normal file
15
internal/handler/auth.go
Normal file
|
|
@ -0,0 +1,15 @@
|
|||
package handler
|
||||
|
||||
import "net/http"
|
||||
|
||||
type authHandler struct {
|
||||
}
|
||||
|
||||
func NewAuthHandler() *authHandler {
|
||||
return &authHandler{}
|
||||
}
|
||||
|
||||
func (h *authHandler) AuthPage(w http.ResponseWriter, r *http.Request) {
|
||||
w.WriteHeader(http.StatusOK)
|
||||
w.Write([]byte("200 OK"))
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue