I'm following the official racket example for URL-based dispatch, but can't seem to get it to work correctly.
#lang web-server/insta
(require web-server/servlet
web-server/servlet-env)
(define (start request)
(blog-dispatch request))
(define-values (blog-dispatch blog-url)
(dispatch-rules
(("") list-posts)
(("posts" (string-arg)) review-post)
(else list-posts)))
(define (list-posts req) `(list-posts))
(define (review-post req p) `(review-post ,p))
(serve/servlet start
#:servlet-path ""
#:port 8080)
When I run the .rkt file, the web server seems to work correctly. But when I actually hit the main page (http://localhost:8080/ or whatever) I get a generic "Welcome to Racket" page instead of the response I specified in the dispatch rules. If I hit localhost:8080/posts/test, I get an error that the page I specified is missing. Am I missing something obvious here?