Avec python flask
from flask import Flask
app = Flask(__name__)
@app.route('/')
def hello():
return'Hello, World!dddddddd'
@app.route('/test/<username>')
def test(username):
return {"testddd": username}
if __name__ == '__main__':
app.run(debug=True)
Avec Node
var http = require('http');
http.createServer(function (request, response) {
response.writeHead(200, { 'Content-Type': 'text-plain' });
response.end('Hello World\n');
}).listen(8124);