Skip to content
Permalink
Browse files

Update README

  • Loading branch information...
Raggaer committed Feb 26, 2019
1 parent 7e0b806 commit 005ee06651205a785075f5f84b5a131deed906db
Showing with 5 additions and 1 deletion.
  1. +5 −1 README.md
@@ -70,11 +70,15 @@ on your gin router func map.

While running on development mode assets you should add a static handler route, so you dont need to recompile the static folder:

```
```go
if gin.Mode() == gin.DebugMode {
r.Static("/public", "public")
}
```

If you ever make changes to your static files, you will need to restart your application,
you could use this as a separate server just to serve static files

# License

`gin-static` is licensed under the **MIT** license.

0 comments on commit 005ee06

Please sign in to comment.
You can’t perform that action at this time.