created macro for defining resource urls