jquery - Web API controller named Aux -


this might sound silly tried create controller (web api - mvc 4)

public class auxcontroller : apicontroller {     [httpget]     public user getuser()     {         ...     } } 

when called api via jquery

var options =         {             url: 'api/aux/getuser',             type: 'get',             datatype: 'json'         }; 

i error.

if refactor controller

public class audcontroller : apicontroller 

and use url option: 'api/aud/getuser'

it works nicely.

and guessed it, if refactor back, doesn't work.

is there reason why happens? machine?

certain keywords such aux not allowed in url. believe this answer question.


Comments

Popular posts from this blog

matlab - Deleting rows with specific rules -

jquery - How would i go about shortening this code? And to cancel the previous click on click of new section? -