Skip to content

fix(dart_frog_cli): disallow middleware of middleware #774

Description

@alestiago

Description

Currently you can make a middleware of a middleware. I think this is not intended, but if it is, feel free to close the issue.

Steps To Reproduce

  1. Create a Dart Frog project:
dart_frog create sample
  1. Create a middleware (from the root of the Dart Frog project):
dart_frog new middleware /
  1. Create a middleware of the middleware (from the root of the Dart Frog project):
dart_frog new _middleware

Expected Behavior
To get an error message when creating the middleware of a middleware.

Screenshots
Result after doing the steps detailed above:

CleanShot 2023-07-19 at 14 27 22

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working as expectedp1High-priority issues at the top of the work list

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions