ipkn / crow

Crow is very fast and easy to use C++ micro web framework (inspired by Python Flask)
BSD 3-Clause "New" or "Revised" License
7.46k stars 889 forks source link

Remove a route #367

Open oytunyapar opened 4 years ago

oytunyapar commented 4 years ago

Is there any function for removing a route, created by using CROW_ROUTE macro?

The-EDev commented 3 years ago

I don't know why you would need to remove a route at runtime, but I can understand wanting to disable a route temporarily.

You wouldn't need a function to do that though, you can just have a config file with all your routes, then have your int main() read that file and call CROW_ROUTE according to the names in the file, if one isn't called, it's as good as removed