ItzNotABug / appexpress

An express.js like framework for Appwrite Functions, enabling super-easy navigation!
Apache License 2.0
43 stars 4 forks source link

Fix: Remove Excess Forward Slashes From Request Path #11

Closed ItzNotABug closed 5 months ago

ItzNotABug commented 5 months ago

This PR fixes the behaviour of the router where the forward slash at the end is treated as a different url.

Before :

'/users' > Data from endpoint.
'/users/' > Cannot GET '/users/'.

After :

'/users' > Data from endpoint.
'/users/' > Data from endpoint.