Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Get dynamic path #1131

Open
1 task done
calebeaires opened this issue Apr 16, 2023 · 0 comments
Open
1 task done

Get dynamic path #1131

calebeaires opened this issue Apr 16, 2023 · 0 comments

Comments

@calebeaires
Copy link

calebeaires commented Apr 16, 2023

Is there an existing issue that is already proposing this?

  • I have searched the existing issues

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

In some cases there is subfolders that is created dynamic. An example is a control for app based on a number.

Describe the solution you'd like

Using path routers to represent the path

        ServeStaticModule.forRoot({
            rootPath: join(__dirname, '..', 'content', 'app', ':app_ID', 'assets'),
            serveRoot: '/content/assets/:app_ID'
        }),

What is the motivation / use case for changing the behavior?

app_ID here represents the dynamic route. Give the user the choice to better represent files in some context, like control user or app files

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant