You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
As it is trivial to create an api action for YOURLS, it would novel if there was an equally trivial way to define custom api actions for yourls-api.js. Is there such a hook?
edit and delete seem particularly handy.
The text was updated successfully, but these errors were encountered:
@joshp23 I'm in the process of a bit of refactoring relating to how the library makes requests (see #6) which might make this possible since the sendRequest method will be exposed. But it's really just a matter of importing and modifying the yourls object to add the methods you want. If they're URL-specific, you might have more trouble since the URL constructor isn't exposed, but I guess you could do something hacky like this:
As it is trivial to create an api action for YOURLS, it would novel if there was an equally trivial way to define custom api actions for yourls-api.js. Is there such a hook?
edit and delete seem particularly handy.
The text was updated successfully, but these errors were encountered: