mirror of
https://github.com/Starlio-app/StarlioX
synced 2025-02-22 23:13:12 +03:00
Logs added
This commit is contained in:
parent
d84a153f7d
commit
35adbe07ff
6 changed files with 126 additions and 59 deletions
|
@ -2,6 +2,7 @@ package utils
|
|||
|
||||
import (
|
||||
"encoding/json"
|
||||
"github.com/Redume/EveryNasa/functions"
|
||||
"net/http"
|
||||
)
|
||||
|
||||
|
@ -13,6 +14,6 @@ func Respond(w http.ResponseWriter, data map[string]interface{}) {
|
|||
w.Header().Add("Content-Type", "application/json")
|
||||
err := json.NewEncoder(w).Encode(data)
|
||||
if err != nil {
|
||||
panic(err)
|
||||
functions.Logger(err.Error())
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue