Return HTTP 404 for non-existing admin pages
This commit is contained in:
parent
d117ce5027
commit
6f6d251cf7
|
@ -50,6 +50,8 @@ func (h *adminHandler) Handle(user *auth.User, company *auth.Company, conn *data
|
||||||
default:
|
default:
|
||||||
httplib.MethodNotAllowed(w, r, http.MethodGet)
|
httplib.MethodNotAllowed(w, r, http.MethodGet)
|
||||||
}
|
}
|
||||||
|
default:
|
||||||
|
http.NotFound(w, r)
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue