api: Fix provider specs handler
This commit is contained in:
parent
9b38d60ec4
commit
7d11a1fe8d
|
@ -77,9 +77,9 @@ func getProviderSpecIcon(c *gin.Context) {
|
|||
}
|
||||
|
||||
func ProviderSpecsHandler(c *gin.Context) {
|
||||
ssid := string(c.Param("ssid"))
|
||||
psid := string(c.Param("psid"))
|
||||
|
||||
src, err := providers.FindProvider(ssid)
|
||||
src, err := providers.FindProvider(psid)
|
||||
if err != nil {
|
||||
c.AbortWithStatusJSON(http.StatusNotFound, gin.H{"errmsg": fmt.Sprintf("Unable to find provider: %s", err.Error())})
|
||||
return
|
||||
|
|
Loading…
Reference in New Issue