Sha256: 3f7e9e2e3ccd3143fea568845821cb34c809da20def53ea3d430bec74e1415b9
Contents?: true
Size: 866 Bytes
Versions: 2
Compression:
Stored size: 866 Bytes
Contents
# # Blogaze # Copyright (C) 2011-2013 Jack Polgar # # Blogaze is released under the BSD 3-clause license. # @license http://opensource.org/licenses/BSD-3-Clause # module Blogaze # Admin routes ::Ramaze::Route[/\/admin(.*)/] = '/admin%s' # Post routes ::Ramaze::Route[/^\/[0-9]+\/[0-9]+\/([\w\.\-]+)$/] = '/posts/view/%s' ::Ramaze::Route[/\/page\/([0-9]+)/] = '/%d' # Tag routes ::Ramaze::Route[/^\/tags\/([\w]+)$/] = '/posts/tag/%s' #::Ramaze::Route[/^\/tags\/([\w]+)\/page\/([0-9]+)$/] = '/posts/tag/%s/%d' # User routes ::Ramaze::Route['/login'] = '/sessions/new' ::Ramaze::Route['/logout'] = '/sessions/destroy' ::Ramaze::Route['/register'] = '/users/new' ::Ramaze::Route['/users/create'] = '/users/create' ::Ramaze::Route[/\/sessions(.*)/] = '/sessions%s' # Page routes ::Ramaze::Route[/^\/([a-zA-Z]+)$/] = '/pages/view' end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
blogaze-0.0.3 | lib/blogaze/routes.rb |
blogaze-0.0.2 | lib/blogaze/routes.rb |