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