Skip to content

Routing

Routing in Dominus is always the same no matter what! The route will always match the project directory structure: [ProjectRoot]/App/Modules/Mymodule/Controllers/MyController

Basic route

1
2
3
/MyModule/MyController/myMethod?param=value
or
/my-module/my-controller/my-method?param=value -- this will be converted automatically to camelCase

Route Shortcuts

Module has the same name as the controller

If your module and controller has the same name, then the url can be shortened like so

1
2
3
/MyModule
or
/my-module

Controller has an Entrypoint attribute set

If the controller has an Entrypoint set then the method can be omitted from the url

1
2
3
/MyModule/MyController
or
/my-module/my-controller

See also

Modules

Controllers