Skip to content
This repository has been archived by the owner on May 25, 2024. It is now read-only.

Commit

Permalink
Merge branch 'main' of https://github.com/EdamAme-x/Naxt.js
Browse files Browse the repository at this point in the history
  • Loading branch information
EdamAme-x committed Nov 2, 2023
2 parents e152a5c + 14b5195 commit c7980c4
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 1 deletion.
8 changes: 8 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -87,6 +87,14 @@ export default function Index(context) {
}
```

#### /api/hello.js
export default function Hello(context) {
return context.html("<h1>Welcome to Naxt.js 🔥</h1>")
}
```
```

The arguments are the same as for Hono.
However, some of them are unique. Please refer to the documentation.

Expand Down
2 changes: 1 addition & 1 deletion demo/routes/api/hello.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
export default function Manga(context) {
export default function Hello(context) {

return context.html("<h1>Welcome to Naxt.js 🔥</h1>")
}

0 comments on commit c7980c4

Please sign in to comment.