Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 744a005

Browse files
committed
[http] fix argument. pass in router pointer
1 parent fcd3da8 commit 744a005

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

http/assets.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ type SPAConf struct {
5858
}
5959

6060
// Init initializes all the routes and confs for SPAConf
61-
func SPA(r Router, conf SPAConf) error {
61+
func SPA(r *Router, conf SPAConf) error {
6262
indexHandler, err := conf.indexHandler(conf.Assets)
6363
if err != nil {
6464
return err

0 commit comments

Comments
 (0)