feat: add support for listening on unix sockets

This commit is contained in:
Stavros
2025-11-04 18:42:04 +02:00
parent 6ac9f6ed4e
commit 60dada86a6
4 changed files with 31 additions and 1 deletions

View File

@@ -97,7 +97,15 @@ func (controller *ContextController) userContextHandler(c *gin.Context) {
}
func (controller *ContextController) appContextHandler(c *gin.Context) {
appUrl, _ := url.Parse(controller.config.AppURL) // no need to check error, validated on startup
appUrl, err := url.Parse(controller.config.AppURL)
if err != nil {
log.Error().Err(err).Msg("Failed to parse app URL")
c.JSON(500, gin.H{
"status": 500,
"message": "Internal Server Error",
})
return
}
c.JSON(200, AppContextResponse{
Status: 200,