-
I am positive that I'm doing something wrong here, or in the wrong order, but I cannot seem to figure it out. I add some API routes using Server.Router.Register(route). That works fine. If I don't add any public folders, the API routes work. If I add a public folder, the API routes no longer work, and the logger suggests that Grapevine is looking for a file with the name of my API route. What am I doing wrong here? |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 1 reply
-
The logger returns this, if I uncomment 'server.PublicFolder = new PublicFolder("public","/")'. |
Beta Was this translation helpful? Give feedback.
-
Ok, So it looks like I am specifying "/" as the root of the "public" folder, and it should actually be "". So I added another public folder at "C:\temp\Sample", and that route prefix should simply be "Sample", not "/Sample". I think I finally have is straight! Everything else seems to be working great! |
Beta Was this translation helpful? Give feedback.
Ok,
So it looks like I am specifying "/" as the root of the "public" folder, and it should actually be "".
So I added another public folder at "C:\temp\Sample", and that route prefix should simply be "Sample", not "/Sample".
I think I finally have is straight!
Everything else seems to be working great!