Skip to content
This repository has been archived by the owner on Jan 18, 2023. It is now read-only.

Commit

Permalink
fix basic example
Browse files Browse the repository at this point in the history
  • Loading branch information
nahtnam committed Mar 2, 2020
1 parent a36793c commit 0bdf098
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions examples/basic/routes/api/v1/[route].js
@@ -1,9 +1,9 @@
const { createRoute, params } = require('light');
const { createRoute, useParams } = require('light');

const { route } = createRoute('index');

module.exports = route(async (req, res) => {
const { route } = await params('/api/v1/:route', req.url);
const { route } = await useParams('/api/v1/:route', req.url);
return {
route: route,
};
Expand Down

0 comments on commit 0bdf098

Please sign in to comment.