Add middleware to include the request ID in all logs.
This commit is contained in:
parent
4096691df0
commit
26e456eae3
5 changed files with 28 additions and 10 deletions
|
|
@ -45,6 +45,7 @@ func HasField(v interface{}, name string) bool {
|
|||
|
||||
// File appends a cache key to a given filepath so it can remain cached until the app is restarted
|
||||
func File(filepath string) string {
|
||||
// TODO: Use const for path prefix
|
||||
return fmt.Sprintf("/files/%s?v=%s", filepath, CacheKey)
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue