labring / labring/laf

[Feature] Dynamic route support

Open
#2,043 0 comments 0 reactions 0 assignees View on GitHub
feature
Dominant language
TypeScript
Stars
7.6k
Forks
670
PR merge metrics
No merged PRs in 30d

Description

### Search before asking

- [x] I had searched in the [issues](https://github.com/labring/laf/issues?q=is%3Aissue) and found no similar issues.

### Feature Request

I hope to support dynamic route resolution. Currently, routes can only be accessed through file names, and the API designed in this way is difficult to comply with the design principles of RESTful API. You can put the settings in the yaml file, such as adding a `path` parameter.

```JavaScript
// not support
/users/{id}
```

### Are you willing to submit PR?

- [ ] Yes I am willing to submit a PR!

Contributor guide

No contributing guide indexed for this repository

Research direction

Start by locating the route-resolution entry point and the YAML configuration handling described in the issue. Check how file names currently become accessible routes, then define how a configured path such as /users/{id} should resolve and how completion will be verified. The issue does not mention specific files or tests.

Written by the indexing model from the issue text.

Assessment

Tech stack
typescript
Domain
backend-api-design
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.