Course of Raku / Functional, concurrent, reactive, and web programming / Web programming / Cro 101 / Exercises
A second route
Problem
Extend the greeting service with a second route: a
GET route for the path bye that returns the
plain text Goodbye!. Keep the original hello
route as well.
This exercise needs Cro installed (
zef install cro).
Example
A request to /bye returns:
Goodbye!Solution
Course navigation
← Solution: A route with a parameter | Solution: A second route →