Handle sub routing to separate http request
Author: dzptCreated Jan 16, 2018Updated May 20, 2025
I want to execute code for two big routes like:
/admin and /
Any route begins with /admin will be execute functions like load json for admin, load template for admin ... and other route '/' will load different resources for avoiding load both frontend and backend.
How i do it with httprouter?
Source: julienschmidt/httprouter