class YourApp::Controller is Catalyst::Controller { method someaction($id) is public { # executed if http://example.com/someaction is called } }