mirror of
https://github.com/ReVanced/revanced-api.git
synced 2026-01-27 21:21: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.info import InfoResponseModel
|
||||
from config import api_version, default_info
|
||||
from config import default_info
|
||||
from api.utils.versioning import get_version
|
||||
|
||||
info: Blueprint = Blueprint("info", version=api_version)
|
||||
module_name = "info"
|
||||
info: Blueprint = Blueprint("info", version=get_version(module_name))
|
||||
|
||||
|
||||
@info.get("/info")
|
||||
|
||||
Reference in New Issue
Block a user