Permalink
Browse files

fix(): fixed server routes for repositories

  • Loading branch information...
Izak88 committed Aug 24, 2017
1 parent 38b446d commit 3a8c90eaca0a4a61fe9240e3906286fc4dd074c9
Showing with 2 additions and 2 deletions.
  1. +1 −1 src/api/server-routes.ts
  2. +1 −1 src/app/services/api.service.ts
@@ -212,7 +212,7 @@ export function repositoryRoutes(): express.Router {
}).catch(err => res.status(401).json({ data: 'Not Authorized' }));
});

router.get('/:id', (req: express.Request, res: express.Response) => {
router.get('/id/:id', (req: express.Request, res: express.Response) => {
checkApiRequestAuth(req)
.then(() => {
getRepository(req.params.id).then(repo => {
@@ -58,7 +58,7 @@ export class ApiService {
}

getRepository(id: string): Observable<any> {
return this.get(`${this.url}/repositories/${id}`, null, true);
return this.get(`${this.url}/repositories/id/${id}`, null, true);
}

getRepositoryBuilds(id: string, limit: number, offset: number): Observable<any> {

0 comments on commit 3a8c90e

Please sign in to comment.