Update main.go
This commit is contained in:
parent
66fad9217a
commit
99124d2af7
1 changed files with 3 additions and 0 deletions
3
main.go
3
main.go
|
@ -31,6 +31,9 @@ func main() {
|
||||||
api.Api.GET("/users/:id", controllers.GetUserById)
|
api.Api.GET("/users/:id", controllers.GetUserById)
|
||||||
api.Api.DELETE("/users", middleware.RequireAuth, controllers.DeleteUser)
|
api.Api.DELETE("/users", middleware.RequireAuth, controllers.DeleteUser)
|
||||||
|
|
||||||
|
// Files
|
||||||
|
api.Router.Static("assets", "./assets")
|
||||||
|
|
||||||
log.Println("Starting server...")
|
log.Println("Starting server...")
|
||||||
|
|
||||||
err := api.Router.Run()
|
err := api.Router.Run()
|
||||||
|
|
Loading…
Add table
Reference in a new issue