README.md in riiif-0.1.0 vs README.md in riiif-0.2.0

- old
+ new

@@ -63,22 +63,22 @@ Using a script like this would be a good idea: https://github.com/pulibrary/loris/blob/607567b921404a15a2111fbd7123604f4fdec087/bin/loris-cache_clean.sh By default the cache is located in `tmp/network_files`. You can set the cache path like this: `Riiif::Image.file_resolver.cache_path = '/var/cache'` ## Usage -Mount the gem as an engine: +Add the routes to your application by inserting the following line into `config/routes.rb` ``` -mount Riiif::Engine => '/image-service' + iiif_for 'riiif/image', at: '/image-service' ``` Then you can make requests like this: -* http://www.example.org/image-service/abcd1234/full/full/0/native.jpg -* http://www.example.org/image-service/abcd1234/full/100,/0/native.jpg -* http://www.example.org/image-service/abcd1234/full/,100/0/native.jpg -* http://www.example.org/image-service/abcd1234/full/pct:50/0/native.jpg -* http://www.example.org/image-service/abcd1234/full/150,75/0/native.jpg -* http://www.example.org/image-service/abcd1234/full/!150,75/0/native.jpg +* http://www.example.org/image-service/abcd1234/full/full/0/default.jpg +* http://www.example.org/image-service/abcd1234/full/100,/0/default.jpg +* http://www.example.org/image-service/abcd1234/full/,100/0/default.jpg +* http://www.example.org/image-service/abcd1234/full/pct:50/0/default.jpg +* http://www.example.org/image-service/abcd1234/full/150,75/0/default.jpg +* http://www.example.org/image-service/abcd1234/full/!150,75/0/default.jpg ### Route helpers It is prefereable that you use the provided route helpers to build these URIs. Here's an example: