In this chapter, we will be covering the following topics:
All the supported routes are specified within a single file:
routes (by default). This makes it all the easier to figure out which one would be ideal.
routes file is compiled and if any errors occur, the compilation fails.
routes file is not a Scala object. So how does the compiler know what to do with the
routes file? To find this out, let's perform the following steps:
index.scala.htmlhome page as follows:
<!DOCTYPE html> <html> <head> ...