fix: minor improvements, wrong argument order, ambigious columns in sql, log messages, etc
This commit is contained in:
@@ -7,6 +7,11 @@ import (
|
||||
"net/http"
|
||||
)
|
||||
|
||||
// TODO: Move to own file
|
||||
func Status(ctx context.Context, w http.ResponseWriter, status int) {
|
||||
w.WriteHeader(status)
|
||||
}
|
||||
|
||||
func JSON(ctx context.Context, w http.ResponseWriter, status int, data any) {
|
||||
payload, err := json.Marshal(data)
|
||||
if err != nil {
|
||||
|
||||
Reference in New Issue
Block a user