from app import app
from models import *


class <%= controllerName %>(object):
    <% endpoints.forEach(function(endpoint){ %>
    @classmethod
    @app.route('<%= endpoint.url %>', methods=<%= JSON.stringify(endpoint.methods) %>)
    def <%= endpoint.functionName %>():
        # TODO
        pass
    <% }); %>

from app import app
from models import *


class <%= controllerName %>(object):
    <% endpoints.forEach(function(endpoint){ %>
    @classmethod
    @app.route('<%= endpoint.url %>', methods=<%= JSON.stringify(endpoint.methods) %>)
    def <%= endpoint.functionName %>():
        # TODO
        pass
    <% }); %>
