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


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

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

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