From 102d01e3b67780dd69eea0e030ca3cb1517356fd Mon Sep 17 00:00:00 2001 From: Sakooooo <78461130+Sakooooo@users.noreply.github.com> Date: Mon, 23 Dec 2024 22:48:44 +0400 Subject: [PATCH] serve static assets dir --- assets/css/base.css | 4 ++++ main.go | 1 + 2 files changed, 5 insertions(+) create mode 100644 assets/css/base.css diff --git a/assets/css/base.css b/assets/css/base.css new file mode 100644 index 0000000..a8cb6c2 --- /dev/null +++ b/assets/css/base.css @@ -0,0 +1,4 @@ +body { + color: white; + background-color: black; +} diff --git a/main.go b/main.go index 702f5ee..ef1ac6d 100644 --- a/main.go +++ b/main.go @@ -11,6 +11,7 @@ func setupRouter() *gin.Engine { // gin.DisableConsoleColor() router := gin.Default() + router.Static("/assets", "./assets") router.LoadHTMLGlob("templates/*") // Ping test