establishing initial auth middleware and routes
This commit is contained in:
parent
f251f52fa9
commit
5c5ba78a32
6 changed files with 92 additions and 1 deletions
14
internal/handler/dashboard.go
Normal file
14
internal/handler/dashboard.go
Normal file
|
|
@ -0,0 +1,14 @@
|
|||
package handler
|
||||
|
||||
import "net/http"
|
||||
|
||||
type dashboardHandler struct{}
|
||||
|
||||
func NewDashboardHandler() *dashboardHandler {
|
||||
return &dashboardHandler{}
|
||||
}
|
||||
|
||||
func (h *dashboardHandler) DashboardPage(w http.ResponseWriter, r *http.Request) {
|
||||
w.WriteHeader(200)
|
||||
w.Write([]byte("Dashboard page"))
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue