From 99124d2af743ff52ad66ff03000d124f9b11c527 Mon Sep 17 00:00:00 2001 From: Nabil Ould Hamou <38989045+NabilOuldHamou@users.noreply.github.com> Date: Thu, 15 Feb 2024 17:03:55 +0100 Subject: [PATCH] Update main.go --- main.go | 3 +++ 1 file changed, 3 insertions(+) diff --git a/main.go b/main.go index c754f74..dad584b 100644 --- a/main.go +++ b/main.go @@ -31,6 +31,9 @@ func main() { api.Api.GET("/users/:id", controllers.GetUserById) api.Api.DELETE("/users", middleware.RequireAuth, controllers.DeleteUser) + // Files + api.Router.Static("assets", "./assets") + log.Println("Starting server...") err := api.Router.Run()