mirror of
https://github.com/Wessel/kirbe.git
synced 2026-07-24 09:07:13 +02:00
Anotha typo
This commit is contained in:
@@ -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!
|
||||
|
||||
Reference in New Issue
Block a user