mirror of
https://github.com/ReVanced/revanced-api.git
synced 2026-01-23 11:11:05 +00:00
feat: better versioning engine
This commit is contained in:
committed by
Alexandre Teles (afterSt0rm)
parent
73252524f1
commit
8d36663610
@@ -7,9 +7,10 @@ Routes:
|
||||
|
||||
from sanic import Blueprint, HTTPResponse, Request, response
|
||||
from sanic_ext import openapi
|
||||
from config import api_version
|
||||
from api.utils.versioning import get_version
|
||||
|
||||
ping: Blueprint = Blueprint("ping", version=api_version)
|
||||
module_name = "ping"
|
||||
ping: Blueprint = Blueprint(module_name, version=get_version(module_name))
|
||||
|
||||
|
||||
@ping.head("/ping")
|
||||
|
||||
Reference in New Issue
Block a user