feat: setting up routes for spaces landing page
This commit is contained in:
parent
36a3d6f962
commit
7c375e1002
8 changed files with 94 additions and 12 deletions
13
internal/handler/redirect.go
Normal file
13
internal/handler/redirect.go
Normal file
|
|
@ -0,0 +1,13 @@
|
|||
package handler
|
||||
|
||||
import "net/http"
|
||||
|
||||
type redirectHandler struct{}
|
||||
|
||||
func NewRedirectHandler() *redirectHandler {
|
||||
return &redirectHandler{}
|
||||
}
|
||||
|
||||
func (h *redirectHandler) Spaces(w http.ResponseWriter, r *http.Request) {
|
||||
http.Redirect(w, r, "/app/spaces", http.StatusMovedPermanently)
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue