Variable types that can be accepted by routes include:
- string: Accepts any text that does not begin with a slash (the default).
- integer: This type accepts integers.
- float: Accepts decimal numbers with decimal points.
- path: Similar to a string, but with the exception that it permits slashes.
Share a personalized message with your friends.