Redirect to another apps

I need to add a new login route that sends me to exmapps instead of apps. Where can I declare and use an alternative route?
Thanks

Hello!

Do I get it correctly that you want to create an app to provide a login provider?

What is exmapps? Can you eventually share a link or something?

Chris

exmapps would be a folder of apps that would have APIs I created. For example, instead of apps, I would go to exmapps when I log in.

What do you mean by

You want to create multiple apps??? It does not matter in which folder an app is installed, this is the concern of the core (server) part of NC.

Or do you mean to have different sets of apps per user group installed?

Chris

I would like it so much that it depends on the user to access one or the other and I would also like to know more about the core (server) that you just mentioned.

OK, let’s be a bit more verbose. What do you want to achieve and why? Could you please write your use case in a paragraph or two?

If the English language is a problem, I can offer German as well. Alternatively, use a translation engine like deepl or Google translate.

Chris

What I want to do is the following. By default, login takes you to ./apps, so I want it to take me to ./exmapps. That’s all it is, but I don’t know where I should change the path.

Well,… I asked for good reason what you want to achieve.

I cannot explain you the glory details of the NC server here. This is too complex for a short post. But, the idea is the following: The core provides a basis to access various resources (like the file system or the database) and handles the direct user requests. Also there are middlewares in place that ensure that the user must be logged in to access resources etc. All crazy and important stuff.

In fact, the actual work is done by apps installed in the NC server. Many apps are part of the server and shipped with it by default. Others can be installed in a plugin manner later on.

Any app can register Controllers. These are a way to enter the execution of the app’s code (they serve as an entry point if a user accesses a certain URL). There are OCS and plain Controllers in place.
By definition (and you cannot alter this), any app that uses a plain controller has a prefix of /apps/<app_id> (or if URL rewriting is not working as expected /index.php/apps/<app_id>). For OCS URLs it is /ocs/v2.php/apps/<app_is>.

This is no classical file path and you cannot change that. It is part of all the glory bells and whistles that the NC server provides. Just to have a different name in the URLs is definitive no good reason for completely hacking into the core.

So, once more: What do you want to achieve?

Thank you so much !!!