Skip to content

Commit 1c64712

Browse files
committed
v0.3.0-alpha.21
1 parent 19c95c9 commit 1c64712

File tree

3 files changed

+11
-3
lines changed

3 files changed

+11
-3
lines changed

examples/hello-world/api/user.ts

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
import type { APIRequest } from 'aleph/types.ts'
2+
3+
export default function handler(req: APIRequest) {
4+
console.log(`req: `, req)
5+
console.log(`req.params: `, req.params)
6+
console.log(`req.params.action: `, req.params.action)
7+
req.status(200).json({ name: req.params.action })
8+
}

import_map.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"imports": {
3-
"framework": "https://deno.land/x/[email protected].20/framework/core/mod.ts",
4-
"framework:react": "https://deno.land/x/[email protected].20/framework/react/mod.ts",
3+
"framework": "https://deno.land/x/[email protected].21/framework/core/mod.ts",
4+
"framework:react": "https://deno.land/x/[email protected].21/framework/react/mod.ts",
55
"react": "https://esm.sh/[email protected]",
66
"react-dom": "https://esm.sh/[email protected]"
77
}

version.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
export const VERSION = '0.3.0-alpha.20'
1+
export const VERSION = '0.3.0-alpha.21'

0 commit comments

Comments
 (0)