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

Commit c7980c4

Browse files
committed
Merge branch 'main' of https://github.com/EdamAme-x/Naxt.js
2 parents e152a5c + 14b5195 commit c7980c4

2 files changed

Lines changed: 9 additions & 1 deletion

File tree

README.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -87,6 +87,14 @@ export default function Index(context) {
8787
}
8888
```
8989

90+
#### /api/hello.js
91+
export default function Hello(context) {
92+
return context.html("<h1>Welcome to Naxt.js 🔥</h1>")
93+
}
94+
```
95+
96+
```
97+
9098
The arguments are the same as for Hono.
9199
However, some of them are unique. Please refer to the documentation.
92100

demo/routes/api/hello.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
export default function Manga(context) {
1+
export default function Hello(context) {
22

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

0 commit comments

Comments
 (0)