Skip to content
This repository was archived by the owner on Apr 12, 2024. It is now read-only.
This repository was archived by the owner on Apr 12, 2024. It is now read-only.

$resource shouldn't collapse URL to "" #5455

@sma

Description

@sma

Consider this $resource definition:

$resource('/:collection/:id');

I can successfully query /foo/1 and /foo however, I'd also like to query / if there is neither a collection or an id passed to query(). Unfortunately, the URL is collapsed to "" instead of "/", probably in an attempt to remove a trailing slash.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions