(It is a double for issue#8 on github -
https://github.com/archimag/restas/issues/8)
Here is a simple RESTAS application:
(require 'asdf)
(asdf:operate 'asdf:load-op '#:restas)
(restas:define-module #:pack
(:use #:cl))
(in-package #:pack)
(restas:define-route route ("file/*path" :method :get) (format nil "~a
- path" path))
(restas:define-route person-change-route ("person:(id)")
(format nil "~a - person" id))
(restas:define-route nooa ("impossible:(siid)" :method :get) (format
nil "~a - imposible" siid))
(restas:start '#:pack :port 8080)
If it is runned on sbcl 1.0.54, hunchentoot 1.2.2, RESTAS 20111203-
git, produces strange begaviour:
http://localhost:8080/person1 ---> "NIL - imposible"
It goes by the wrong, third, route.
If you comment first, or last route, your will receive:
http://localhost:8080/person1 ---> "1 - person"