Skip to content

Commit 62ca0b1

Browse files
committed
prova
1 parent 6175aae commit 62ca0b1

File tree

319 files changed

+51453
-0
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

319 files changed

+51453
-0
lines changed

app.js

+19
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
const express = require('express')
2+
const app = express()
3+
const PORT = process.env.PORT || 3000
4+
5+
function string_square(s){
6+
if (typeof(s)==String){
7+
res = length(s)*length(s);
8+
} else {
9+
res = -1;
10+
}
11+
return res;
12+
}
13+
14+
app.get('/square?string=my_string', (req, res) => {
15+
const s = req.query.my_string
16+
string_square(s);
17+
})
18+
19+
app.listen(PORT, () => console.log('Example app listening on port'+ PORT))

node_modules/.bin/mime

+15
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

node_modules/.bin/mime.cmd

+7
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

node_modules/accepts/HISTORY.md

+224
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

node_modules/accepts/LICENSE

+23
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)