Switch to using Pathways instead of CreditPathways.

This commit is contained in:
Diana Huang
2018-08-23 13:25:42 -04:00
parent dd198674bc
commit 18403d2382
12 changed files with 86 additions and 86 deletions

View File

@@ -15,7 +15,7 @@ class StubCatalogServiceHandler(StubHttpRequestHandler):
r'/api/v1/programs/$': self.program_list,
r'/api/v1/programs/([0-9a-f-]+)/$': self.program_detail,
r'/api/v1/program_types/$': self.program_types,
r'/api/v1/credit_pathways/$': self.credit_pathways
r'/api/v1/pathways/$': self.pathways
}
if self.match_pattern(pattern_handlers):
@@ -48,9 +48,9 @@ class StubCatalogServiceHandler(StubHttpRequestHandler):
program_types = self.server.config.get('catalog.programs_types', [])
self.send_json_response(program_types)
def credit_pathways(self):
credit_pathways = self.server.config.get('catalog.credit_pathways', [])
self.send_json_response(credit_pathways)
def pathways(self):
pathways = self.server.config.get('catalog.pathways', [])
self.send_json_response(pathways)
class StubCatalogService(StubHttpService):