#dynamically defining services

1 messages · Page 1 of 1 (latest)

proud belfry
#

for reference, i want to make a library that contains my basic auth flow to make developemnt accross my projects quicker

crimson whale
#

I’d recommend an extractor approach to sharing auth logic

#

Not sure how that’s related to dynamic defined services though

#

Like you want to change the registered handlers in the router at runtime?

proud belfry
#

no like i want to define some services

#

to handle auth logic with some env variables like databae_url, some keys and such

which can be esaily inserted into a project

#

without having to write out all of the services

young helm
#

What's dynamic about that? You can just insert your configuration data as an AppData