Hacker News
new
|
past
|
comments
|
ask
|
show
|
jobs
|
submit
login
func-to-route/next: turn any function in a Next.js API route with 1LOC
(
github.com/danielfalbo
)
1 point
by
danielfalbo
5 months ago
|
hide
|
past
|
favorite
|
1 comment
danielfalbo
5 months ago
[–]
Simple as
export const GET = funcToRoute(sayHello)
Guidelines
|
FAQ
|
Lists
|
API
|
Security
|
Legal
|
Apply to YC
|
Contact
Search:
export const GET = funcToRoute(sayHello)