use path as default model name

This commit is contained in:
2024-02-16 22:31:32 +08:00
parent f2e32340e3
commit 46ee30ced7
2 changed files with 2 additions and 4 deletions

View File

@@ -109,6 +109,7 @@ func main() {
CreatedAt: time.Now(),
Authorization: c.Request.Header.Get("Authorization"),
UserAgent: c.Request.Header.Get("User-Agent"),
Model: c.Request.URL.Path,
}
// check authorization header