| @property | @property | ||||
| def app_base_url(self): | def app_base_url(self): | ||||
| return (current_app.config['APP_URL'] if current_app.config['APP_URL'] else request.host_url.rstrip('/')) + '/v1' | |||||
| return (current_app.config['APP_URL'] if current_app.config['APP_URL'] else request.host_url.rstrip('/')) | |||||
| class ApiToken(db.Model): | class ApiToken(db.Model): |