Tim Neutkens
9506f15afd
Update custom server examples ( #24814 )
2021-05-07 18:50:56 +02:00
Noob Tsai
33df8e6fa4
Update Koa Router Example ( #19272 )
...
The `custom-server-koa` example is not working in the latest koa-router, so I made some changes mentioned in #9705 .
Also update Koa.js to 2.13.0.
2020-11-24 01:22:39 +00:00
Joe Haddad
86160a5190
Upgrade to Prettier 2 ( #13061 )
2020-05-18 15:24:37 -04:00
Nainterceptor
e382997ea7
Upgrade koa router in example ( #10469 )
...
* Upgrade koa router
* Change koa import
2020-02-08 16:54:28 -05:00
Joe Haddad
53f4f82e4c
Catch all requests in custom server ( #8704 )
...
Some users aren't aware they need to edit their custom server to support various HTTP Methods (e.g. POST for API Routes).
Instead, we should just handle all HTTP Methods out-of-the-box.
---
Closes #8237
2019-09-11 10:23:41 -04:00
Vincent Grafé
d7856c6698
fixes a few inconsistencies in server routes ( #6382 )
...
I spotted a few typos in the server files, that might confuse new/unexperienced users. I hope I did catch them all!
2019-02-21 13:21:22 +01:00
Tim Neutkens
9c4eefcdbf
Add prettier for examples directory ( #5909 )
...
* Add prettier for examples directory
* Fix files
* Fix linting
* Add prettier script in case it has to be ran again
2018-12-17 17:34:32 +01:00
Tim Neutkens
ebf0c47c25
Upgrade standard.js ( #4064 )
...
* Upgrade standard.js
# Conflicts:
# yarn.lock
* Upgrade babel-eslint
2018-03-27 20:11:03 +02:00
Anton Egorov
2d7ba7f489
Remove error handling from custom-server-koa's server example ( #3982 )
...
Koa's `listeningListener` callback is invoked with no arguments according to the Koa's type definitions, hence error handling is extraneous.
2018-03-10 12:22:40 +01:00
Brikou CARRE
ba65b07dff
Ease running multiple examples at the same time with process.env.PORT ( #2753 )
2017-08-10 20:15:46 +02:00
Arana Jhonny
68d48cb004
Update Koa example for Koa 2 with async/await ( #1317 )
2017-02-28 21:49:58 +01:00
Arunoda Susiripala
2efabde215
Fix koa-404 issue by adding res.statusCode to 200 ( #815 )
2017-01-18 00:45:29 -03:00
Dan Zajdband
2c2d961844
Added Koa example ( #800 )
...
* Added Koa example
* Linted koa example
2017-01-17 08:23:06 +01:00