Skip to content

Commit

Permalink
3.0.2
Browse files Browse the repository at this point in the history
  • Loading branch information
tamaina committed Feb 12, 2023
1 parent 3c7c3c8 commit f4a1809
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 3 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
3.0.2 / 2023-02-12
------------------
* Fastifyのルーティングを'/'から'*'に

3.0.1 / 2023-02-12
------------------
* ES Moduleになりました
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ summaly(url[, opts])
```

As Fastify plugin:
(will listen `GET` of `/url`)
(will listen `GET` of `/`)

```javascript
import Summaly from 'summaly';
Expand Down
2 changes: 1 addition & 1 deletion built/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ export const summaly = async (url, options) => {
});
};
export default function (fastify, options, done) {
fastify.get('/url', async (req, reply) => {
fastify.get('/', async (req, reply) => {
const url = req.query.url;
if (url == null) {
return reply.status(400).send({
Expand Down
2 changes: 1 addition & 1 deletion src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@ export default function (fastify: FastifyInstance, options: Options, done: (err?
url?: string;
lang?: string;
};
}>('/url', async (req, reply) => {
}>('/', async (req, reply) => {
const url = req.query.url as string;
if (url == null) {
return reply.status(400).send({
Expand Down

0 comments on commit f4a1809

Please sign in to comment.