graphiti-api/spraypaint.js

[Question] Custom routes and actions

Opened this issue · 0 comments

I was wondering how to implement fetching the currently active user.
Normally, I would just call /api/v1/user. How can I achieve this behaviour with spraypaint?

Besides, a related question is concerning actions (which are indicated in the route). For example I would like a post by performing a get request to /api/v1/posts/1/like. Is there a possibility to add something to the route in a find request?

Thanks in advance!