Browse Source

fix: remove v1 in app_base_url (#55)

tags/0.2.2
John Wang 2 years ago
parent
commit
a4713c01d5
No account linked to committer's email address
1 changed files with 1 additions and 1 deletions
  1. 1
    1
      api/models/model.py

+ 1
- 1
api/models/model.py View File

@@ -505,7 +505,7 @@ class Site(db.Model):

@property
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):

Loading…
Cancel
Save