-
Notifications
You must be signed in to change notification settings - Fork 310
First iteration #206
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
base: main
Are you sure you want to change the base?
First iteration #206
Conversation
dirtymew
left a comment
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.
Привет Андрей
теперь PR неверно оформлен - нужно поправить
| package main | ||
|
|
||
| import ( | ||
| "bytes" |
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.
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.
Отправил ссылку на первый pr, там оба коммита и Ваши первые комментарии
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.
По названиям хэндлеров я понял, что надо более понятнее их давать. Когда отправлял ссылку затупил и не сделал третий коммит с названиями хэндлеров
| } | ||
|
|
||
| res.Header().Set("Content-type", "application/json") | ||
| res.Write(resp) |
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.
_, _ = res.Write(resp)
|
|
||
| // здесь регистрируйте ваши обработчики | ||
| // ... | ||
| r.Get("/tasks", allTasks) |
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.
getTasks
| // здесь регистрируйте ваши обработчики | ||
| // ... | ||
| r.Get("/tasks", allTasks) | ||
| r.Post("/tasks", postTasks) |
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.
addTask
| // ... | ||
| r.Get("/tasks", allTasks) | ||
| r.Post("/tasks", postTasks) | ||
| r.Get("/tasks/{id}", idTasks) |
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.
getTask
| r.Get("/tasks", allTasks) | ||
| r.Post("/tasks", postTasks) | ||
| r.Get("/tasks/{id}", idTasks) | ||
| r.Delete("/tasks/{id}", delTasks) |
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.
deleteTask

No description provided.