Update main.go

This commit is contained in:
Nabil Ould Hamou 2024-02-15 17:03:55 +01:00 committed by GitHub
parent 66fad9217a
commit 99124d2af7
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -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()