Commit cc9ed84
fix: support api routes at index of folder (#2101)
* feat: support finding source file when index of folder
* chore: add tests
* fix: fix prettier error
* Update test/helpers/files.spec.ts
Co-authored-by: Michal Piechowiak <misiek.piechowiak@gmail.com>
---------
Co-authored-by: Michal Piechowiak <misiek.piechowiak@gmail.com>1 parent 2eba019 commit cc9ed84
File tree
3 files changed
+15
-0
lines changed- packages/runtime/src/helpers
- test
- fixtures/page-extensions/index/pages/api/index
- helpers
3 files changed
+15
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
353 | 353 | | |
354 | 354 | | |
355 | 355 | | |
| 356 | + | |
| 357 | + | |
| 358 | + | |
| 359 | + | |
| 360 | + | |
356 | 361 | | |
357 | 362 | | |
358 | 363 | | |
| |||
Lines changed: 1 addition & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
237 | 237 | | |
238 | 238 | | |
239 | 239 | | |
| 240 | + | |
| 241 | + | |
| 242 | + | |
| 243 | + | |
| 244 | + | |
| 245 | + | |
| 246 | + | |
| 247 | + | |
| 248 | + | |
240 | 249 | | |
0 commit comments