Fcmam5 / jelban-express.js

Using https://github.com/Fcmam5/jelban-js

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Jelban.js Express example

Example usage of JelBAN.js

Example queries

Request

curl --location --request POST 'http://localhost:3000/signup' \
     --header 'Content-Type: application/json' \
     --data-raw '{
        "emailAddress": "4fa167a441@boxomail.live"
    }'

Response

{
  "status": 400,
  "answer": "Bad email address"
}

Request

curl --location --request POST 'http://localhost:3000/signup' \
     --header 'Content-Type: application/json' \
     --data-raw '{
        "emailAddress": "John.Doe+example@googlemail.com"
    }'

Response

{
  "status": 200,
  "answer": "I got \"John.Doe+example@googlemail.com\", you get johndoe@gmail.com"
}

About

Using https://github.com/Fcmam5/jelban-js

License:MIT License


Languages

Language:TypeScript 100.0%