Skip to content

Latest commit

 

History

History
37 lines (32 loc) · 1.09 KB

README.md

File metadata and controls

37 lines (32 loc) · 1.09 KB

redirect.center-generator

Getting Started

Install dependencies

yarn install

Start express server

yarn start

Endpoints

[GET] /cname


Response: /cname?target=jobs.old-website.com&destination=https://new-website.com/jobs&usePath=true

{
    "result": {
        "records": [
            {
                "type": "CNAME",
                "host": "jobs",
                "value": "new-website.com.opts-slash.jobs.opts-https.opts-uri.redirect.center"
            }
        ],
        "target": "jobs.old-website.com",
        "destination": "https://new-website.com/jobs",
        "usePath": true,
        "isHttps": true
    }
}

Run in Postman