From af287b8f4904951829ec16715a5f161f488e2bfd Mon Sep 17 00:00:00 2001 From: Adrien Date: Sat, 11 May 2024 17:23:50 +0200 Subject: [PATCH] Clear textarea after sending --- main.go | 8 ++++++-- views/chat.html | 10 ++++++++-- 2 files changed, 14 insertions(+), 4 deletions(-) diff --git a/main.go b/main.go index c3c9ec7..d4be8f3 100644 --- a/main.go +++ b/main.go @@ -58,8 +58,12 @@ func main() { app.Get("/callbackSignup", handleCallbackSignup) app.Get("/test", func(c *fiber.Ctx) error { - fmt.Println("Current User: ", getCurrentUser(), " - ", checkIfLogin()) - return c.Render("test", fiber.Map{}) + fmt.Println("Hello from test") + return c.SendString("") + }) + + app.Get("/empty", func(c *fiber.Ctx) error { + return c.SendString("") }) // Start server diff --git a/views/chat.html b/views/chat.html index 1a3b2e2..07a56f1 100644 --- a/views/chat.html +++ b/views/chat.html @@ -14,7 +14,7 @@