1.0.10 • Published 6 years ago

ts-http-endpoints v1.0.10

Weekly downloads
44
License
SEE LICENSE IN CC...
Repository
github
Last release
6 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

6 years ago

1.0.9

6 years ago

1.0.8

6 years ago

1.0.7

6 years ago

1.0.6

6 years ago

1.0.5

6 years ago

1.0.4

6 years ago

1.0.3

6 years ago

1.0.2

6 years ago

1.0.1

6 years ago