We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
write less code
const app = new Elysia() .redirect('/', '/docs') // or .redirect({ '/': '/docs', '/old-docs': '/docs' })
will be nice with serve.static (oven-sh/bun#13540)
.get('/', ({ redirect }) => redirect('/docs'))
The text was updated successfully, but these errors were encountered:
import { Elysia } from "elysia"; const app = new Elysia() .get("/", ({ set }) => (set.redirect = "/redirected")) .get("/redirected", () => "redirected") .listen(3000);
Sorry, something went wrong.
@RaphaelNJ
we already have
app.get('/', ({ redirect }) => redirect('/docs'))
my idea is write less code and use new serve.static option, which makes such routes faster
SaltyAom
No branches or pull requests
What is the problem this feature would solve?
write less code
What is the feature you are proposing to solve the problem?
will be nice with serve.static (oven-sh/bun#13540)
What alternatives have you considered?
The text was updated successfully, but these errors were encountered: