Skip to content

Commit

Permalink
Add UltimateExpress (#8153)
Browse files Browse the repository at this point in the history
* feat: add ultimate-express

* fix: disable x-powered-by
  • Loading branch information
dimdenGD authored Jan 13, 2025
1 parent 5b6396a commit fab15ac
Show file tree
Hide file tree
Showing 5 changed files with 34 additions and 0 deletions.
2 changes: 2 additions & 0 deletions javascript/ultimate-express/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
node_modules
package-lock.json
1 change: 1 addition & 0 deletions javascript/ultimate-express/.nvmrc
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
v23.3.0
20 changes: 20 additions & 0 deletions javascript/ultimate-express/app.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
const express = require('ultimate-express');

const app = express();

app.set('etag', false);
app.set('x-powered-by', false);

app.get('/', function (req, res) {
res.send('');
});

app.get('/user/:id', function (req, res) {
res.send(req.params.id);
});

app.post('/user', function (req, res) {
res.send('');
});

app.listen(3000);
6 changes: 6 additions & 0 deletions javascript/ultimate-express/config.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
framework:
github: dimdenGD/ultimate-express
version: 1.3.17

engines:
- uwebsockets
5 changes: 5 additions & 0 deletions javascript/ultimate-express/package.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
{
"dependencies": {
"ultimate-express": "~1.3.17"
}
}

0 comments on commit fab15ac

Please sign in to comment.