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

refactor, restructure routes, conform to (zod) openapi spec #61

Merged
merged 38 commits into from
Dec 11, 2023

Conversation

dromzeh
Copy link
Member

@dromzeh dromzeh commented Nov 17, 2023

this pr moves all functions into file-based routing and utilizes hono's zod-openapi

eg /routes/game/get/id/[id]/route.ts, openapi.ts & schema.ts instead of prev /routes/game/get-game-by-id.ts
(and so it matches the zod-openapi spec)

also utilizes class managers to prevent repetitive code - last minute backend rewrites ftw :3
closes #60

@dromzeh dromzeh added documentation Improvements or additions to documentation enhancement New feature or request priority: high Issue needs to be fixed ASAP db r2 dependencies breaking change labels Nov 17, 2023
@dromzeh dromzeh self-assigned this Nov 17, 2023
@dromzeh dromzeh marked this pull request as ready for review December 11, 2023 23:50
@dromzeh
Copy link
Member Author

dromzeh commented Dec 11, 2023

fuck it, merging

@dromzeh dromzeh merged commit 65748b1 into v2 Dec 11, 2023
4 checks passed
@dromzeh dromzeh deleted the route-restructure branch December 11, 2023 23:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
breaking change db dependencies documentation Improvements or additions to documentation enhancement New feature or request priority: high Issue needs to be fixed ASAP r2
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant