Oh, I don't need to create new entries in an admin panel.
This commit is contained in:
parent
8cb5cbc342
commit
c9de5b9e18
@ -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)
|
||||||
|
@ -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 {
|
||||||
|
Loading…
Reference in New Issue
Block a user