Top "Routes" questions

Questions about mapping URLs to Controllers and Actions.

Change route collection of MVC6 after startup

In MVC-5 I could edit the routetable after initial startup by accessing RouteTable.Routes. I wish to do the same …

c# asp.net-core routes asp.net-core-mvc asp.net-mvc-routing
Backbone.js — Call method before/after a route is fired

I want a setup/teardown method to be called before and after a route is fired in my Backbone.js …

backbone.js routes router
ASP.NET MVC 4 Routes not working

Route routes.MapRoute( name: "Default", url: "{controller}/{action}/{id}", defaults: new { controller = "Home", action = "Index", id = UrlParameter.Optional } ); routes.MapRoute( …

asp.net-mvc-4 routes maproute
Express.js or angular for handling routes in a MEAN application?

I am totally new to everything Nodejs/express/angular, and I just ran into a question that bothers me. When …

node.js angularjs routes mean-stack
Add custom middleware to Laravel Passport endpoints

I have a standard Laravel Passport setup on 5.4 - it all works fine and is generating tokens. I protect my …

php laravel routes middleware laravel-passport
How do you pass multiple arguments to nested route paths in Rails?

I am new to Rails and normally set up a link_to helper for a normal unnested route like so: …

ruby-on-rails path routes link-to
How to create routing inside a modal window [ ANGULAR 5 ]?

I have a requirement where i need to switch between 2 different views back and forth based on certain condition inside …

angular routes angular5 angular-routing nested-routes
404 on http://localhost/wp-json/wp/v2/posts in wordpress using REST API V2

I am getting a 404 on http://localhost/wp-json/wp/v2/posts route. I changed permalink type to plain. Still got …

angularjs wordpress rest routes wordpress-rest-api
Rails initializer that runs *after* routes are loaded?

I want to set a class attribute when my Rails app starts up. It requires inspecting some routes, so the …

ruby-on-rails ruby-on-rails-3 ruby-on-rails-3.1 routes initializer
akka-http: How to set response headers

I've a route as follows: val route = { logRequestResult("user-service") { pathPrefix("user") { get { respondWithHeader(RawHeader("Content-Type", "application/json")) { parameters("firstName".?, "lastName".?).…

scala routes akka spray akka-http