Skip to content

Commit

Permalink
tweak example
Browse files Browse the repository at this point in the history
  • Loading branch information
iyifr committed Oct 8, 2024
1 parent 4b91604 commit b491378
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions bin/main.dart
Original file line number Diff line number Diff line change
Expand Up @@ -23,10 +23,10 @@ void main() async {
var apiRouter = createRouter();

app.use(router, basePath: '/');
app.use(apiRouter, basePath: '/api');
app.use(apiRouter, basePath: '/api');

router.get("/vamos/:id/base/:studentId", (event) {
return getRouterParams(event, name: "id");
return getRouteParam(event, name: "id");
});

apiRouter.get("/signup", (event) async {
Expand Down

0 comments on commit b491378

Please sign in to comment.