Commit 5ca9cc6
committed
feat: add comprehensive OpenAPI documentation and refactor routes
- Add Swagger/OpenAPI documentation for all API endpoints (files, code, notes, folders, users)
- Refactor route files into modular folder structure (crud/actions/trash/counts)
- Fix TypeScript type inference issues with OpenAPIHono validators
- Fix route registration order to prevent /{id} catching /empty-trash
- Increase file download rate limit to 1000 req/15min in development
- Add Swagger docs link to README (https://api.typelets.com/docs)1 parent 5591f54 commit 5ca9cc6
File tree
22 files changed
+2707
-764
lines changed- src
- lib
- middleware
- routes
- code
- files
- folders
- notes
- users
22 files changed
+2707
-764
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | | - | |
4 | 3 | | |
5 | 4 | | |
6 | | - | |
| 5 | + | |
7 | 6 | | |
8 | 7 | | |
9 | 8 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
170 | 170 | | |
171 | 171 | | |
172 | 172 | | |
| 173 | + | |
| 174 | + | |
173 | 175 | | |
174 | 176 | | |
175 | 177 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
39 | 39 | | |
40 | 40 | | |
41 | 41 | | |
42 | | - | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
43 | 45 | | |
44 | 46 | | |
45 | 47 | | |
| |||
49 | 51 | | |
50 | 52 | | |
51 | 53 | | |
52 | | - | |
| 54 | + | |
53 | 55 | | |
54 | 56 | | |
55 | 57 | | |
| |||
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
0 commit comments