I have made an API controller by asp.net core to communicate with a third-party APP.
When the user authorizes my API in the third-party APP, my API needs to provide a brand new controller and URL to the APP which only works for this user. And then, the server of the APP will transfer data from the user to my API via the URL.
Each controller only differs from some string such as user name and token so that I made a base controller and about to inherit from it.
Whereas, I don't know how to create a controller dynamically after building the project.
In addition, I need the controller which creates dynamically still exists even the server of my API restart.
How can I achieve it? Thank you.