Anotha typo

This commit is contained in:
Wessel T
2019-01-16 17:21:24 +01:00
committed by GitHub
parent ba2918a0a9
commit 111f639339

View File

@@ -22,7 +22,7 @@ $ npm i kirbe # Install w/ NPM
const kirbe = require( 'kirbe' ); // Define kirbe
const app = new kirbe(); // Make your kirbe client
app.route( '/bear', 'GET' ( req, res ) => res.status( 200 ).body({ 'bear': 'cop' }) );
app.route( '/bear', 'GET', ( req, res ) => res.status( 200 ).body({ 'bear': 'cop' }) );
app.route( ( req, res ) => res.status( 404 ).body( 'Error: Content not found!' ).end() );
app.get( '/kirb', ( req, res ) => {
res.writeHead( 201, { 'test': 'hi' });
@@ -52,4 +52,4 @@ app.use( kirbe.static( path.join( __dirname, 'static' ) ) );
### Why use kirbe?
Kirbe is a lightweight and fast HTTP server library, especially comparing to express which is around 1mb. If you want any featuers that aren't inside of Kirbe yet, you can open an issue or pull request.
You can join [https://discord.gg/SV7DAE9](https://discord.gg/SV7DAE9) if you need any support using kirbe!
You can join [https://discord.gg/SV7DAE9](https://discord.gg/SV7DAE9) if you need any support using kirbe!