TE
科技回声
首页24小时热榜最新最佳问答展示工作
GitHubTwitter
首页

科技回声

基于 Next.js 构建的科技新闻平台,提供全球科技新闻和讨论内容。

GitHubTwitter

首页

首页最新最佳问答展示工作

资源链接

HackerNews API原版 HackerNewsNext.js

© 2025 科技回声. 版权所有。

Show HN: A file tree based API Router

4 点作者 aliezsid将近 5 年前

2 条评论

rajnathani将近 5 年前
I created something I believe is exactly like this a while ago, one called xrest [0] which resolves the API endpoint routes from the file tree structure at runtime, and another called restree [1] which generates the routes before runtime by generating code.<p>[0] <a href="https:&#x2F;&#x2F;github.com&#x2F;rajnathani&#x2F;xrest" rel="nofollow">https:&#x2F;&#x2F;github.com&#x2F;rajnathani&#x2F;xrest</a><p>[1] <a href="https:&#x2F;&#x2F;github.com&#x2F;rajnathani&#x2F;restree" rel="nofollow">https:&#x2F;&#x2F;github.com&#x2F;rajnathani&#x2F;restree</a>
评论 #23763028 未加载
MH15将近 5 年前
This is very interesting, similar to serverless functions on Vercel or many other services. Will be interested to give it a try. Can you explain why there needs to be a compilation step?
评论 #23759166 未加载