Rather than getting the root page "/", POSTing to "/", then getting a response at "/", KnowYourPorts will provide an api-like response:
Initial view "/" will display input page.
POST will always occur to "/"
Upon hit, ports will display at the appropriate endpoint, e.g. "/port/22"
This provides a lot of extra functionality (like bookmarking) and will pave the road for other features too.
This is deliberately not a true API specification or implementation of this project although that is a consideration for a later time.
This PR changes the way results are displayed.
Rather than getting the root page "/", POSTing to "/", then getting a response at "/", KnowYourPorts will provide an api-like response: Initial view "/" will display input page. POST will always occur to "/" Upon hit, ports will display at the appropriate endpoint, e.g. "/port/22"
This provides a lot of extra functionality (like bookmarking) and will pave the road for other features too.
This is deliberately not a true API specification or implementation of this project although that is a consideration for a later time.