Skip to content

Generate redirect.center records with a simple endpoint request

Notifications You must be signed in to change notification settings

MathewBoyles/redirect.center-generator

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

Generate redirect.center records with a simple endpoint request

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published