mikec / kalamata

Extensible REST API for Express + Bookshelf.js
MIT License
41 stars 12 forks source link

Read __opts__ before using endpointName #3

Closed graemetait closed 8 years ago

graemetait commented 8 years ago

This fixes issue #2.

It appears that endpointName was being used to set up the hooks before it had been read from __opts__, so the default endpointName was always being used even if a custom one was set.

mikec commented 8 years ago

@burriko thanks for the contribution! :+1: :tada: