Skip to content

Commit

Permalink
v0.3.0-alpha.21
Browse files Browse the repository at this point in the history
  • Loading branch information
ije committed Mar 28, 2021
1 parent 19c95c9 commit 1c64712
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 3 deletions.
8 changes: 8 additions & 0 deletions examples/hello-world/api/user.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
import type { APIRequest } from 'aleph/types.ts'

export default function handler(req: APIRequest) {
console.log(`req: `, req)
console.log(`req.params: `, req.params)
console.log(`req.params.action: `, req.params.action)
req.status(200).json({ name: req.params.action })
}
4 changes: 2 additions & 2 deletions import_map.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"imports": {
"framework": "https://deno.land/x/[email protected].20/framework/core/mod.ts",
"framework:react": "https://deno.land/x/[email protected].20/framework/react/mod.ts",
"framework": "https://deno.land/x/[email protected].21/framework/core/mod.ts",
"framework:react": "https://deno.land/x/[email protected].21/framework/react/mod.ts",
"react": "https://esm.sh/[email protected]",
"react-dom": "https://esm.sh/[email protected]"
}
Expand Down
2 changes: 1 addition & 1 deletion version.ts
Original file line number Diff line number Diff line change
@@ -1 +1 @@
export const VERSION = '0.3.0-alpha.20'
export const VERSION = '0.3.0-alpha.21'

0 comments on commit 1c64712

Please sign in to comment.