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

add router #12

Merged
merged 3 commits into from
Oct 1, 2024
Merged

add router #12

merged 3 commits into from
Oct 1, 2024

Conversation

omar2205
Copy link
Contributor

@omar2205 omar2205 commented Apr 4, 2023

This PR adds a simple router, which can be used this way:

const api_v1 = new Router()
api_v1.get('/', () => 'API V1')

app.use('/api/v1', api_v1)

@danteissaias
Copy link
Owner

LGTM!

@danteissaias danteissaias merged commit 5a12f43 into danteissaias:main Oct 1, 2024
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

Successfully merging this pull request may close these issues.

2 participants