Webserver path question

i’d like to handle different paths with the gadgeteer webserver. something like

/posts
/posts/1
/posts/2

i know that i can get url parameters, but i need restful routes.

i took a look at the source code and found that the WebServerManager class has a default web event to handle all incoming requests that don’t match any defined path.

my idea is to define my own default event that handles all requests in a proper way. can this be done? or is there a better way to do it?

oliver

Have you looked at the examples found at C:\Users\Gus Issa\Documents\Microsoft .NET Micro Framework 4.2\Samples

Forgot which one but there is an example that is essentially an SD card browser!

Welcome to the community.

hi, thank you for your response. where can i find the example on the internet? i’m lost :slight_smile:

thanks

The example is installed on your pc

Replace Gus Issa with your user name to find directory on your pc