File: __init__.py

package info (click to toggle)
python-pyramid 1.6%2Bdfsg-1
  • links: PTS, VCS
  • area: main
  • in suites: stretch
  • size: 9,112 kB
  • ctags: 8,169
  • sloc: python: 41,764; makefile: 111; sh: 17
file content (15 lines) | stat: -rw-r--r-- 651 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
def includeme(config):
    config.add_route('gameactions_pet_get_pets', '/pet',
                     request_method='GET')
    config.add_route('gameactions_pet_care_for_pet', '/pet',
                     request_method='POST')
    config.add_view('.views.PetRESTView',
                    route_name='gameactions_pet_get_pets',
                    attr='GET',
                    permission='view',
                    renderer='json')
    config.add_view('.views.PetRESTView',
                    route_name='gameactions_pet_care_for_pet',
                    attr='POST',
                    permission='view',
                    renderer='json')