Skip to content

Commit

Permalink
fix(main): fix signature of serviceGET, doe snot need resource
Browse files Browse the repository at this point in the history
  • Loading branch information
wzr1337 committed Feb 8, 2017
1 parent 250377f commit 09d2140
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions src/main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -90,8 +90,14 @@ var run = (port?:number):Promise<void> => {
};



const serviceGET = (service:Service, resource:Resource) => {
/**
* retrieve all resources of a service
*
* @param service the service to discover
*
* returns an express route callback
*/
const serviceGET = (service:Service) => {

let resources:Array<any> = service.resources.map((res:Resource)=>{
return {
Expand Down

0 comments on commit 09d2140

Please sign in to comment.