From 1c647129142d5f73720fc693a2eea85c122a3060 Mon Sep 17 00:00:00 2001 From: X Date: Sun, 28 Mar 2021 19:01:33 +0800 Subject: [PATCH] v0.3.0-alpha.21 --- examples/hello-world/api/user.ts | 8 ++++++++ import_map.json | 4 ++-- version.ts | 2 +- 3 files changed, 11 insertions(+), 3 deletions(-) create mode 100644 examples/hello-world/api/user.ts diff --git a/examples/hello-world/api/user.ts b/examples/hello-world/api/user.ts new file mode 100644 index 000000000..041bccb6d --- /dev/null +++ b/examples/hello-world/api/user.ts @@ -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 }) +} diff --git a/import_map.json b/import_map.json index 79871cf72..7012a3065 100644 --- a/import_map.json +++ b/import_map.json @@ -1,7 +1,7 @@ { "imports": { - "framework": "https://deno.land/x/aleph@v0.3.0-alpha.20/framework/core/mod.ts", - "framework:react": "https://deno.land/x/aleph@v0.3.0-alpha.20/framework/react/mod.ts", + "framework": "https://deno.land/x/aleph@v0.3.0-alpha.21/framework/core/mod.ts", + "framework:react": "https://deno.land/x/aleph@v0.3.0-alpha.21/framework/react/mod.ts", "react": "https://esm.sh/react@17.0.1", "react-dom": "https://esm.sh/react-dom@17.0.1" } diff --git a/version.ts b/version.ts index 7bc4af776..062d530e5 100644 --- a/version.ts +++ b/version.ts @@ -1 +1 @@ -export const VERSION = '0.3.0-alpha.20' +export const VERSION = '0.3.0-alpha.21'