diff options
| author | winter | 2024-12-06 20:43:26 +0000 |
|---|---|---|
| committer | winter | 2024-12-06 20:43:26 +0000 |
| commit | e1ad307b531c27ec6bfaf8b4d018991b0d4a78f3 (patch) | |
| tree | 4ef08af2b4051d433bb929d5162474ac6777cab1 /routes/homepage.php | |
initial commit
hardcoded functionality mostly!
Diffstat (limited to 'routes/homepage.php')
| -rw-r--r-- | routes/homepage.php | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/routes/homepage.php b/routes/homepage.php new file mode 100644 index 0000000..ea5d31b --- /dev/null +++ b/routes/homepage.php @@ -0,0 +1,12 @@ +<?php + +use WpfTest\Router; + +Router::getInstance()->mount('/', function (array $args) { + echo '<h1>home</h1>'; +}); + +Router::getInstance()->mount('/:username', function (array $args) { ?> + <h1><?= $args['username'] ?></h1> + <p>todo!</p> +<?php });
\ No newline at end of file |
