ngResource with localhost do not work

Hi everybody.
I have a ionic ngResource function that when my url post is a public url works fine, but when i use my own url rest application with localhost:8080 do not work.

Public url works:
return $resource(',uk&appid=2de143494c0b295cca9337e1e96b00e0');

Internal url do not work:
return $resource('');

Thanks in advanced