Skip to content

Commit

Permalink
Added missing restapi
Browse files Browse the repository at this point in the history
  • Loading branch information
damylen committed Jul 9, 2015
1 parent 6692f44 commit 622ae0d
Showing 1 changed file with 31 additions and 0 deletions.
31 changes: 31 additions & 0 deletions example/ServerComponents/api/RestAPI.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
import LayerManager = require('LayerManager');
import express = require('express')

export class RestAPI implements LayerManager.IApiInterface {

public manager: LayerManager.LayerManager

constructor(public server: express.Express) {

}

public init(layerManager: LayerManager.LayerManager, options: any) {
this.manager = layerManager;
console.log('init Rest API');
this.server.get("/testje", (req: any, res: any) => {
this.manager.addFeature({ test: 'bla' });
});



// express api aanmaken
// vb. addFeature,



// doorzetten naar de layermanager


}

}

0 comments on commit 622ae0d

Please sign in to comment.