1
0

Oh, I don't need to create new entries in an admin panel.

This commit is contained in:
Alexander Andreev 2023-02-06 02:04:13 +04:00
parent 8cb5cbc342
commit c9de5b9e18
Signed by: Arav
GPG Key ID: 0388CC8FAA51063F
2 changed files with 0 additions and 4 deletions

View File

@ -68,7 +68,6 @@ func main() {
srv.GET("/guestbook/admin", hand.GuestbookAdmin) srv.GET("/guestbook/admin", hand.GuestbookAdmin)
srv.DELETE("/guestbook/admin/entry/:id", hand.GuestbookAdminDeleteEntry) srv.DELETE("/guestbook/admin/entry/:id", hand.GuestbookAdminDeleteEntry)
srv.POST("/guestbook/admin/entry/:id", hand.GuestbookAdminUpdateEntry) srv.POST("/guestbook/admin/entry/:id", hand.GuestbookAdminUpdateEntry)
srv.POST("/guestbook/admin/entry/", hand.GuestbookAdminNewEntry)
srv.DELETE("/guestbook/admin/reply/:id", hand.GuestbookAdminDeleteReply) srv.DELETE("/guestbook/admin/reply/:id", hand.GuestbookAdminDeleteReply)
srv.POST("/guestbook/admin/reply/:id", hand.GuestbookAdminUpdateReply) srv.POST("/guestbook/admin/reply/:id", hand.GuestbookAdminUpdateReply)
srv.POST("/guestbook/admin/reply/", hand.GuestbookAdminNewReply) srv.POST("/guestbook/admin/reply/", hand.GuestbookAdminNewReply)

View File

@ -187,9 +187,6 @@ func (h *Handlers) GuestbookAdminDeleteEntry(w http.ResponseWriter, r *http.Requ
func (h *Handlers) GuestbookAdminUpdateEntry(w http.ResponseWriter, r *http.Request) { func (h *Handlers) GuestbookAdminUpdateEntry(w http.ResponseWriter, r *http.Request) {
} }
func (h *Handlers) GuestbookAdminNewEntry(w http.ResponseWriter, r *http.Request) {
}
func (h *Handlers) GuestbookAdminDeleteReply(w http.ResponseWriter, r *http.Request) { func (h *Handlers) GuestbookAdminDeleteReply(w http.ResponseWriter, r *http.Request) {
id, err := strconv.ParseInt(GetURLParam(r, "id"), 10, 64) id, err := strconv.ParseInt(GetURLParam(r, "id"), 10, 64)
if err != nil { if err != nil {