fix: remove v1 in app_base_url (#55)

This commit is contained in:
John Wang 2023-05-16 22:41:45 +08:00 committed by GitHub
parent 8847bb1e45
commit a4713c01d5
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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