Skip to content
This repository has been archived by the owner on Nov 25, 2020. It is now read-only.

Commit

Permalink
feat(decorator): Added @endpoint() decorator
Browse files Browse the repository at this point in the history
  • Loading branch information
RWOverdijk committed Jan 17, 2016
1 parent d22f5c2 commit 36d58cd
Showing 1 changed file with 16 additions and 0 deletions.
16 changes: 16 additions & 0 deletions src/decorator/endpoint.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
import {OrmMetadata} from '../orm-metadata';

/**
* @todo add docblocks
* @todo update documentation
* @todo update aurelia-auth
* @todo update swan cli with skeleton
*
* @param entityEndpoint
* @return {Function}
*/
export function endpoint(entityEndpoint) {
return function(target) {
OrmMetadata.forTarget(target).put('endpoint', entityEndpoint);
};
}

0 comments on commit 36d58cd

Please sign in to comment.