# -*- coding: utf-8 -*-
# from odoo import http


# class CorCustom(http.Controller):
#     @http.route('/cor_custom/cor_custom/', auth='public')
#     def index(self, **kw):
#         return "Hello, world"

#     @http.route('/cor_custom/cor_custom/objects/', auth='public')
#     def list(self, **kw):
#         return http.request.render('cor_custom.listing', {
#             'root': '/cor_custom/cor_custom',
#             'objects': http.request.env['cor_custom.cor_custom'].search([]),
#         })

#     @http.route('/cor_custom/cor_custom/objects/<model("cor_custom.cor_custom"):obj>/', auth='public')
#     def object(self, obj, **kw):
#         return http.request.render('cor_custom.object', {
#             'object': obj
#         })
