From 34765f9e471da857e27d793aab4c7e833cae9a9e Mon Sep 17 00:00:00 2001 From: "Alexander \"Arav\" Andreev" Date: Sat, 6 May 2023 23:14:04 +0400 Subject: [PATCH] Changed form action from /guestbook to /api/guestbook. --- web/templates/guestbook.pug | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/web/templates/guestbook.pug b/web/templates/guestbook.pug index 40eb225..cb82c81 100755 --- a/web/templates/guestbook.pug +++ b/web/templates/guestbook.pug @@ -22,7 +22,7 @@ block nav block content :go:func Guestbook(title, owner, captcha_id string, pages_count int64, entries []*guestbook.Entry, r *http.Request) - form#new-post(action='/guestbook', method='POST') + form#new-post(action='/api/guestbook', method='POST') input(type='text' maxlength='80' placeholder='Name (Anonymous if left blank)' name='name') input(type='text' maxlength='255' placeholder='Website (optional)' name='website') textarea(maxlength='4096' placeholder='Your message' name="message" required='')