mirror of
https://github.com/ReVanced/revanced-api.git
synced 2026-01-27 05:01:04 +00:00
feat: better versioning engine
This commit is contained in:
committed by
Alexandre Teles (afterSt0rm)
parent
73252524f1
commit
8d36663610
@@ -10,9 +10,11 @@ from sanic.response import JSONResponse, json
|
||||
from sanic_ext import openapi
|
||||
|
||||
from api.models.donations import DonationsResponseModel
|
||||
from config import api_version, wallets, links
|
||||
from config import wallets, links
|
||||
from api.utils.versioning import get_version
|
||||
|
||||
donations: Blueprint = Blueprint("donations", version=api_version)
|
||||
module_name = "donations"
|
||||
donations: Blueprint = Blueprint(module_name, version=get_version(module_name))
|
||||
|
||||
|
||||
@donations.get("/donations")
|
||||
|
||||
Reference in New Issue
Block a user