Skip to content

Instantly share code, notes, and snippets.

@Cylix
Created October 19, 2020 04:52
Show Gist options
  • Save Cylix/6759e61862904e2f6ce41b74cbfa9e66 to your computer and use it in GitHub Desktop.
Save Cylix/6759e61862904e2f6ce41b74cbfa9e66 to your computer and use it in GitHub Desktop.
Reflection in C++14 - Routes Configuration in JSON
{
"/articles": [
{ "method": "GET", "to": "articles#index" },
{ "method": "POST", "to": "articles#create" }
],
"/articles/:id": [
{ "method": "GET", "to": "articles#show" },
{ "method": "PUT", "to": "articles#update" },
{ "method": "DELETE", "to": "articles#destroy" }
]
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment