Is there any way to create or extend api rest within cubejs?

I want to add a security layer via rest, but i was thinking if it is possible to create or extend a simple api rest within cubejs.

In this way I dont any other backend to just have a few api points ( /auth /auth/refresh /user ).

Hi @josx !
Did you have a chance to check the following section?

Would love to know if it may work for you.

In this part of docs it is just talking about security, but it say i have to use my own backend server or cloud function to make my API.

My question is about if there a way to extend Cubejs Backend to support my custom login API calls.

Thanks for the clarification. This approach is not recommended and we don’t have any examples for this use case but technically should be doable.