| 1 | package Terse::Controller::DelayedStatic; | ||
| 2 | |||
| 3 | use base 'Terse::Controller'; | ||
| 4 | |||
| 5 | sub static :get :view(static) :delayed :path(static/(.*\.js)) :captured(1) :content_type(application/javascript) { } | ||
| 6 | |||
| 7 | sub static_png :get(static) :view(static) :delayed :path(static/(.*\.png)) :captured(1) :content_type(image/png) { } | ||
| 8 | |||
| 9 | sub static_svg :get(static) :view(static) :delayed :path(static/(.*\.svg)) :captured(1) :content_type(image/svg) { } | ||
| 10 | |||
| 11 | sub static_jpeg :get(static) :view(static) :delayed :path(static/(.*\.jpeg)) :captured(1) :content_type(image/jpeg) { } | ||
| 12 | |||
| 13 | sub static_gif :get(static) :view(static) :delayed :path(static/(.*\.gif)) :captured(1) :content_type(image/gif) { } | ||
| 14 | |||
| 15 | sub static_json :get(static) :view(static) :delayed :path(static/(.*\.json)) :captured(1) :content_type(application/json) { } | ||
| 16 | |||
| 17 | sub static_html :get(static) :view(static) :delayed :path(static/(.*\.html)) :captured(1) :content_type(text/html) { } | ||
| 18 | |||
| 19 | sub static_plain :get(static) :view(static) :delayed :path(static/(.*\.txt)) :captured(1) :content_type(text/plain) { } | ||
| 20 | |||
| 21 | sub static_css :get(static) :view(static) :delayed :path(static/(.*\.css)) :captured(1) :content_type(text/css) { } | ||
| 22 | |||
| 23 | sub static_eot :get(static) :view(static) :delayed :path(static/(.*\.eot)) :captured(1) :content_type(application/vnd.ms-fontobject) { } | ||
| 24 | |||
| 25 | sub static_ttf :get(static) :view(static) :delayed :path(static/(.*\.ttf)) :captured(1) :content_type(application/font-sfnt) { } | ||
| 26 | |||
| 27 | sub static_woff :get(static) :view(static) :delayed :path(static/(.*\.woff2*)) :captured(1) :content_type(application/font-woff) { } | ||
| 28 | |||
| 29 | 1; | ||
| 30 | |||
| 31 | __END__; |