Permalink
Browse files

feat(decorator): Added @endpoint() decorator

  • Loading branch information...
RWOverdijk committed Jan 17, 2016
1 parent d22f5c2 commit 36d58cd133b58491774b9f90c65c2208405c0b86
Showing with 16 additions and 0 deletions.
  1. +16 −0 src/decorator/endpoint.js
@@ -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.