-
-
Notifications
You must be signed in to change notification settings - Fork 0
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Den dev #66
Conversation
I added edit/delete buttons. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
visitor validation absent
func (m *Repository) EditTopicHandler(w http.ResponseWriter, r *http.Request) {
if r.Method == http.MethodPost {
do we need post method here
func (m *Repository) EditTopicResultHandler(w http.ResponseWriter, r *http.Request) {
if r.Method == http.MethodPost {
new post validation absent
func (m *Repository) DeleteTopicHandler(w http.ResponseWriter, r *http.Request) {
if r.Method == http.MethodPost {
postID, err1 := strconv.Atoi(r.URL.Query().Get("postID"))
postID - validation needed
func (m *SqliteBDRepo) EditPost(post models.Post) error {
postID - validation needed
func (m *SqliteBDRepo) DeletePost(post models.Post) error {
postID - validation needed
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
validations should be added
unc (m *Repository) EditTopicHandler(w http.ResponseWriter, r *http.Request) { do we need post method here - yes, it does not work without post method |
No description provided.