[WIP] nikic/fast-route implementation

I will describe it more in Pull Request
This commit is contained in:
slawkens
2021-06-08 19:17:38 +02:00
parent cf04c1df02
commit e52a301d9e
65 changed files with 1075 additions and 668 deletions

View File

@@ -32,5 +32,19 @@
"type": "BEFORE_PAGE",
"file": "plugins/example/before.php"
}
}
},
"routes": {
"First Route": {
"pattern": "/YourAwesomePage",
"file": "plugins/your-plugin/your-awesome-page.php",
"method": "GET",
"priority": "130"
},
"Second Route": {
"pattern": "/YourSecondRoute",
"file": "plugins/your-plugin/your-awesome-page-two.php",
"method": "GET,POST",
"priority": "120"
}
}
}