10 lines
260 B
Python
10 lines
260 B
Python
api_path_separator = '/'
|
|
api_type_separator = '--'
|
|
|
|
class MyMeta:
|
|
@classmethod
|
|
def get_type_and_path(cls, name):
|
|
return (f"{cls.type}{api_type_separator}{name}", f"{cls.type}{api_path_separator}{name}")
|
|
@classmethod
|
|
def set_api(cls, api):
|
|
cls.api = api |