Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Tree: b7f456f73b
Fetching contributors…

Cannot retrieve contributors at this time

40 lines (31 sloc) 0.911 kB
# -*- coding: utf-8 -*-
"""
[[ plural|title ]] URLs
The priority is based upon order of creation:
first created -> highest priority.
"""
from shake import Rule, EndpointPrefix, Submount
from . import controllers, models
urls = [
EndpointPrefix('bundles.[[ plural ]].controllers', [
Rule('/', 'index',
methods=['GET'],
name='[[ plural ]].index'
),
Rule('/new/', 'new',
name='[[ plural ]].new'
),
Rule('/<int:[[ singular ]]_id>/', 'show',
name='[[ plural ]].show'
),
Rule('/<int:[[ singular ]]_id>/edit/', 'edit',
name='[[ plural ]].edit'
),
Rule('/<int:[[ singular ]]_id>/delete/', 'delete',
name='[[ plural ]].delete'
),
Rule('/<int:[[ singular ]]_id>/restore/', 'restore',
name='[[ plural ]].restore'
),
]),
]
Jump to Line
Something went wrong with that request. Please try again.