Skip to content

Commit

Permalink
cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
dimkr committed Feb 10, 2025
1 parent de41f8b commit de95169
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion front/handler.go
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ func NewHandler(domain string, closed bool, cfg *cfg.Config, resolver ap.Resolve

h.handlers[regexp.MustCompile(`^/$`)] = withUserMenu(h.home)

h.handlers[regexp.MustCompile(`^/user$`)] = withUserMenu(h.users)
h.handlers[regexp.MustCompile(`^/user$`)] = withUserMenu(h.user)
if closed {
h.handlers[regexp.MustCompile(`^/user/register$`)] = func(w text.Writer, r *Request, args ...string) {
w.Status(40, "Registration is closed")
Expand Down
2 changes: 1 addition & 1 deletion front/users.go → front/user.go
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ import (
"github.com/dimkr/tootik/front/text"
)

func (h *Handler) users(w text.Writer, r *Request, args ...string) {
func (h *Handler) user(w text.Writer, r *Request, args ...string) {
if r.User == nil {
w.Redirect("/oops")
return
Expand Down

0 comments on commit de95169

Please sign in to comment.