Skip to content

update export inside the middleware folder #101

Description

@ezkemboi

Is your feature request related to a problem? Please describe.

I would like this script (inside src/middlwares/index.js) to change to make it dynamic. Check the solution below for more clarification

import { createUserMiddleware } from './user'

const userMiddleware = {
  createUserMiddleware
}

export default userMiddleware

Describe the solution you'd like

import { createUserMiddleware } from './user'

export {
  createUserMiddleware
}

Thus, it will allow dynamic exports of many middlewares from the index file.

Describe alternatives you've considered
N/A
Additional context
N/A

Activity

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

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions