| 12345678910111213141516171819202122 |
- # -*- coding: utf-8 -*-
- # from odoo import http
- # class Web3(http.Controller):
- # @http.route('/web3/web3', auth='public')
- # def index(self, **kw):
- # return "Hello, world"
- # @http.route('/web3/web3/objects', auth='public')
- # def list(self, **kw):
- # return http.request.render('web3.listing', {
- # 'root': '/web3/web3',
- # 'objects': http.request.env['web3.web3'].search([]),
- # })
- # @http.route('/web3/web3/objects/<model("web3.web3"):obj>', auth='public')
- # def object(self, obj, **kw):
- # return http.request.render('web3.object', {
- # 'object': obj
- # })
|