Open Jaymon opened 4 years ago
so you could do something like:
$ endpoints generate modpath.Foo Bar
and it will create a file at $ENDPOINTS_PREFIX/modpath.py and $ENDPOINTS_PREFIX/__init__.py with something like:
$ENDPOINTS_PREFIX/modpath.py
$ENDPOINTS_PREFIX/__init__.py
class Foo(Controller): def GET(self, *args, **kwargs): pass def POST(self, *args, **kwargs): pass
so you could do something like:
and it will create a file at
$ENDPOINTS_PREFIX/modpath.py
and$ENDPOINTS_PREFIX/__init__.py
with something like: