#Multiple Action Functions

1 messages · Page 1 of 1 (latest)

lone frost
#

the routing structure is what DEFINES your api routes so I'm not sure how you would even accomplish this. I don't believe you can override an action functions route

lunar zephyr
#

ok

delicate garnet
#

I'm a bit confused here, is there any context to the ask?

lone frost
#

he deleted the question, but I think wanted to have a master route where he could define all actions/loaders

so like

const loader:LoaderFunction = async (request, {route: "/posts"}) => <stuff>

const loader:LoaderFunction = async (request, {route: "/users"}) => <stuff>

At least I think that's what the question was