Skip to content
This repository was archived by the owner on Jun 10, 2019. It is now read-only.

Commit 4f38d6b

Browse files
committed
Use API for json endpoint
1 parent 1a939ab commit 4f38d6b

1 file changed

Lines changed: 1 addition & 3 deletions

File tree

src/scenes/home/codeSchools/onlineSchools/onlineSchools.js

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,9 +7,7 @@ import treehouseLogo from 'images/moocLogos/treehouse.jpg';
77
import udacityLogo from 'images/moocLogos/udacity.jpg';
88
import styles from './onlineSchools.css';
99

10-
// const endpoint = 'https://api.operationcode.org/api/v1/code_schools.json';
11-
const endpoint = 'https://raw.githubusercontent.com/OperationCode/operationcode_frontend/code-schools-cooper-kyle/src/scenes/home/codeSchools/schools.json';
12-
const gettingSchoolData = fetch(endpoint)
10+
const gettingSchoolData = fetch('https://api.operationcode.org/api/v1/code_schools.json')
1311
.then(response => response.json());
1412

1513
class OnlineSchools extends Component {

0 commit comments

Comments
 (0)