chore: #123 unify metrics, logs, variable names and structure

This commit is contained in:
2024-09-02 22:44:59 +02:00
parent b548968ac6
commit 9666f239fe
13 changed files with 84 additions and 114 deletions

View File

@@ -16,7 +16,7 @@ func RunMigrations(db *sql.DB) {
}
m, err := migrate.NewWithDatabaseInstance(
"file://./migrations/",
"file://./migration/",
"",
driver)
if err != nil {

View File

@@ -1,11 +0,0 @@
package utils
import (
"encoding/json"
"net/http"
)
func WriteJSON(w http.ResponseWriter, data interface{}) error {
w.Header().Set("Content-Type", "application/json")
return json.NewEncoder(w).Encode(data)
}