1.0.10 • Published 5 years ago

ts-http-endpoints v1.0.10

Weekly downloads
44
License
SEE LICENSE IN CC...
Repository
github
Last release
5 years ago

Une solution pour creer facilement un serveur http.

// Dependences
import {HttpServer} from '../src/server/http.server';

 // Creation server
 const server: HttpServer = new HttpServer(); // new HttpServer(true) pour afficher des logs
 
 server
   // Declaration d'un callback sur le chemin /hello et method GET
   .get(async ctx => 'Hello !', '/hello')
   // Démarrage du serveur
   .listen(9495);

Installation avec npm

npm install --save ts-http-endpoints

Documentation

// Arrive bientôt

Journal des modifications

  • 2019-01-13 : 1.0.3 Ajout connection ws
  • 2019-01-13 : 1.0.2 Mise à jour de la documentation
  • 2019-01-13 : 1.0.1 Initialisation d'une version pour GET/POST/PUT et DELETE

Licence

CC BY 4.0 : https://creativecommons.org/licenses/by/4.0/

1.0.10

5 years ago

1.0.9

5 years ago

1.0.8

5 years ago

1.0.7

5 years ago

1.0.6

5 years ago

1.0.5

5 years ago

1.0.4

5 years ago

1.0.3

5 years ago

1.0.2

5 years ago

1.0.1

5 years ago