chore(certs): Rename endpoint /c/ => /certificates/
This commit is contained in:
		| @@ -134,7 +134,7 @@ function renderCertShow(username, cert) { | |||||||
|           block={ true } |           block={ true } | ||||||
|           bsSize='lg' |           bsSize='lg' | ||||||
|           bsStyle='primary' |           bsStyle='primary' | ||||||
|           href={ `/c/${username}/${cert.showURL}`} |           href={ `/certificates/${username}/${cert.showURL}`} | ||||||
|           > |           > | ||||||
|           Show |           Show | ||||||
|         </Button> |         </Button> | ||||||
|   | |||||||
| @@ -208,7 +208,7 @@ class CertificationSettings extends PureComponent { | |||||||
|               block={ true } |               block={ true } | ||||||
|               bsSize='lg' |               bsSize='lg' | ||||||
|               bsStyle='primary' |               bsStyle='primary' | ||||||
|               href={ `/c/${username}/${superBlock}`} |               href={ `/certificates/${username}/${superBlock}`} | ||||||
|               > |               > | ||||||
|               Show Certificate |               Show Certificate | ||||||
|             </Button> : |             </Button> : | ||||||
|   | |||||||
| @@ -43,7 +43,7 @@ class JSAlgoAndDSForm extends PureComponent { | |||||||
|     e.preventDefault(); |     e.preventDefault(); | ||||||
|     const { username, superBlock, isCertClaimed } = this.props; |     const { username, superBlock, isCertClaimed } = this.props; | ||||||
|     if (isCertClaimed) { |     if (isCertClaimed) { | ||||||
|       return this.props.hardGoTo(`/c/${username}/${superBlock}`); |       return this.props.hardGoTo(`/certificates/${username}/${superBlock}`); | ||||||
|     } |     } | ||||||
|     return this.props.claimCert(superBlock); |     return this.props.claimCert(superBlock); | ||||||
|   } |   } | ||||||
|   | |||||||
| @@ -197,7 +197,7 @@ export default function certificate(app) { | |||||||
|     verifyCert |     verifyCert | ||||||
|   ); |   ); | ||||||
|   router.get( |   router.get( | ||||||
|     '/c/:username/:cert', |     '/certificates/:username/:cert', | ||||||
|     showCert |     showCert | ||||||
|   ); |   ); | ||||||
|  |  | ||||||
|   | |||||||
| @@ -29,4 +29,4 @@ include styles | |||||||
| 					strong Quincy Larson | 					strong Quincy Larson | ||||||
| 				p Executive Director, freeCodeCamp.org | 				p Executive Director, freeCodeCamp.org | ||||||
| 			.row | 			.row | ||||||
| 				p.verify Verify this certificate at: https://freecodecamp.org/c/#{username}/advanced-front-end | 				p.verify Verify this certificate at: https://freecodecamp.org/certificates/#{username}/advanced-front-end | ||||||
| @@ -29,4 +29,4 @@ include styles | |||||||
| 					strong Quincy Larson | 					strong Quincy Larson | ||||||
| 				p Executive Director, freeCodeCamp.org | 				p Executive Director, freeCodeCamp.org | ||||||
| 			.row | 			.row | ||||||
| 				p.verify Verify this certificate at: https://freecodecamp.org/c/#{username}/apis-and-microservices | 				p.verify Verify this certificate at: https://freecodecamp.org/certificates/#{username}/apis-and-microservices | ||||||
|   | |||||||
| @@ -29,4 +29,4 @@ include styles | |||||||
| 					strong Quincy Larson | 					strong Quincy Larson | ||||||
| 				p Executive Director, freeCodeCamp.org | 				p Executive Director, freeCodeCamp.org | ||||||
| 			.row | 			.row | ||||||
| 				p.verify Verify this certificate at: https://freecodecamp.org/c/#{username}/data-visualization | 				p.verify Verify this certificate at: https://freecodecamp.org/certificates/#{username}/data-visualization | ||||||
|   | |||||||
| @@ -29,4 +29,4 @@ include styles | |||||||
| 					strong Quincy Larson | 					strong Quincy Larson | ||||||
| 				p Executive Director, freeCodeCamp.org | 				p Executive Director, freeCodeCamp.org | ||||||
| 			.row | 			.row | ||||||
| 				p.verify Verify this certificate at: https://freecodecamp.org/c/#{username}/front-end-libraries | 				p.verify Verify this certificate at: https://freecodecamp.org/certificates/#{username}/front-end-libraries | ||||||
|   | |||||||
| @@ -29,4 +29,4 @@ include styles | |||||||
| 					strong Quincy Larson | 					strong Quincy Larson | ||||||
| 				p Executive Director, freeCodeCamp.org | 				p Executive Director, freeCodeCamp.org | ||||||
| 			.row | 			.row | ||||||
| 				p.verify Verify this certificate at: https://freecodecamp.org/c/#{username}/information-security-and-quality-assurance | 				p.verify Verify this certificate at: https://freecodecamp.org/certificates/#{username}/information-security-and-quality-assurance | ||||||
|   | |||||||
| @@ -29,4 +29,4 @@ include styles | |||||||
| 					strong Quincy Larson | 					strong Quincy Larson | ||||||
| 				p Executive Director, freeCodeCamp.org | 				p Executive Director, freeCodeCamp.org | ||||||
| 			.row | 			.row | ||||||
| 				p.verify Verify this certificate at: https://freecodecamp.org/c/#{username}/javascript-algorithms-and-data-structures | 				p.verify Verify this certificate at: https://freecodecamp.org/certificates/#{username}/javascript-algorithms-and-data-structures | ||||||
|   | |||||||
| @@ -29,4 +29,4 @@ include ../styles | |||||||
| 					strong Quincy Larson | 					strong Quincy Larson | ||||||
| 				p Executive Director, freeCodeCamp.org | 				p Executive Director, freeCodeCamp.org | ||||||
| 			.row | 			.row | ||||||
| 				p.verify Verify this certificate at: https://freecodecamp.org/c/#{username}/legacy-back-end | 				p.verify Verify this certificate at: https://freecodecamp.org/certificates/#{username}/legacy-back-end | ||||||
|   | |||||||
| @@ -29,4 +29,4 @@ include ../styles | |||||||
| 					strong Quincy Larson | 					strong Quincy Larson | ||||||
| 				p Executive Director, freeCodeCamp.org | 				p Executive Director, freeCodeCamp.org | ||||||
| 			.row | 			.row | ||||||
| 				p.verify Verify this certificate at: https://freecodecamp.org/c/#{username}/legacy-data-visualization | 				p.verify Verify this certificate at: https://freecodecamp.org/certificates/#{username}/legacy-data-visualization | ||||||
|   | |||||||
| @@ -29,4 +29,4 @@ include ../styles | |||||||
| 					strong Quincy Larson | 					strong Quincy Larson | ||||||
| 				p Executive Director, freeCodeCamp.org | 				p Executive Director, freeCodeCamp.org | ||||||
| 			.row | 			.row | ||||||
| 				p.verify Verify this certificate at: https://freecodecamp.org/c/#{username}/legacy-front-end | 				p.verify Verify this certificate at: https://freecodecamp.org/certificates/#{username}/legacy-front-end | ||||||
|   | |||||||
| @@ -29,4 +29,4 @@ include ../styles | |||||||
| 					strong Quincy Larson | 					strong Quincy Larson | ||||||
| 				p Executive Director, freeCodeCamp.org | 				p Executive Director, freeCodeCamp.org | ||||||
| 			.row | 			.row | ||||||
| 				p.verify Verify this certificate at: https://freecodecamp.org/c/#{username}/legacy-full-stack | 				p.verify Verify this certificate at: https://freecodecamp.org/certificates/#{username}/legacy-full-stack | ||||||
| @@ -29,4 +29,4 @@ include styles | |||||||
| 					strong Quincy Larson | 					strong Quincy Larson | ||||||
| 				p Executive Director, freeCodeCamp.org | 				p Executive Director, freeCodeCamp.org | ||||||
| 			.row | 			.row | ||||||
| 				p.verify Verify this certificate at: https://freecodecamp.org/c/#{username}/responsive-web-design | 				p.verify Verify this certificate at: https://freecodecamp.org/certificates/#{username}/responsive-web-design | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user