You can make the following GET requests
- /file/sample.html -- returns the content of the file sample.html
- /json -- returns a json of the /random request
- /random -- returns index.html
- /formatstring -- formats a string based on mode:
- Positive mode (mode=1): converts string to UPPERCASE
- Negative mode (mode=-1): converts string to lowercase
- Zero mode (mode=0): converts first letter to UPPERCASE and the rest of the string is lowercase.
- Example: /formatstring?text=hello world&mode=1"
- /quadratic -- solves a quadratic equation ax^2 + bx + c = 0
- Returns two real roots if discriminant > 0
- Returns one real root if discriminant = 0
- Returns two complex roots if discriminant < 0
- Example: /quadratic?a=1&b=2&c=3
File Structure in www (you can use /file/www/FILENAME):