-
Notifications
You must be signed in to change notification settings - Fork 215
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore: online stackblitz playground (#451)
- Loading branch information
Showing
8 changed files
with
679 additions
and
454 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
import { createApp, defineEventHandler, toNodeListener } from "h3"; | ||
|
||
const app = createApp({ debug: true }); | ||
|
||
app.use( | ||
"/", | ||
defineEventHandler((event) => { | ||
return { path: event.path, message: "Hello World!" }; | ||
}) | ||
); | ||
|
||
export default toNodeListener(app); |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
{ | ||
"name": "h3-playground", | ||
"private": true, | ||
"scripts": { | ||
"start": "listhen ./app.ts", | ||
"dev": "listhen -w ./app.ts" | ||
}, | ||
"dependencies": { | ||
"h3": "^1.7.1", | ||
"listhen": "^1.1.2" | ||
} | ||
} |
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.