from flask_restful import Resource


class Module(Resource):
    def __init__(self):
        super(Module, self).__init__()

    def mediatypes(self):
        return ["application/json"]

    def get_service(self):
        pass

    def get_controller(self):
        pass

    def get_identifier(self):
        return "id"
from flask_restful import Resource
from compiler import *


class Module(Resource):
    def __init__(self):
        super(Module, self).__init__()

    def mediatypes(self):
        return ["application/json"]

    def get_service(self):
        return create_service_js(self)

    def get_controller(self):
        pass

    def get_identifier(self):
        return "id"
Create service js in module base