Skip to content

When using $RESOURCES as routes, a malformed DELETE (missing an ID) will result in a mismatching action #392

@mjhagen

Description

@mjhagen

(as posted on the CFML Slack's #fw1)

This makes sense, but I would like the framework to account for that and maybe provide a better way handling expected errors in routes.

Example:
I have a subsystem with my API in it (api:) and when I call this URL: DELETE /api/myObject/1 that will be rewritten by fw/1 to api:myObject.destroy?id=1 but when I call DELETE /api/myObject it gets rewritten to defaultsubsystem:api.myObject where I would like it to recognize the pattern and either throw a 404 or a 500 (I'm not sure which is more RESTful).

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions