Skip to content
This repository was archived by the owner on May 11, 2025. It is now read-only.

Commit bce84e3

Browse files
committed
fix cache handler bug
1 parent 30be767 commit bce84e3

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

server.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ func RunServer() {
99
app := iris.Default()
1010
{
1111
app.Get("/user/{username:string}", CachedHandler(UserAPI, "username"))
12-
app.Get("/repo/{username:string}/{repo:string}", CachedHandler(RepoAPI, "username", "password"))
12+
app.Get("/repo/{username:string}/{repo:string}", CachedHandler(RepoAPI, "username", "repo"))
1313
}
1414
app.Listen(fmt.Sprintf(":%d", conf.Server.Port))
1515
}

0 commit comments

Comments
 (0)