How do I use the Keystone.js admin api (unauthed) app in my app?

I looked at this docs on the admin api and realized that it solves my Keystone use case for spa power perfectly fine. However, I cannot figure out how to access the admin api routes from the api routes I create without forcing the auth event first.

Anyone have any suggestions how I could go about doing this?

+3


source to share


1 answer


After some trial and error, I came up with a solution that I really like. I took a good look at keystone / admin / server / app / createDynamicRouter.js and copied the functionality from there and also duplicated the / admin / server / middleware / initList.js keyword.



+3


source







All Articles