mirror of
https://github.com/ReVanced/revanced-api.git
synced 2026-01-19 17:33:56 +00:00
refactor: move versioning efforts to initalization
This commit is contained in:
committed by
Alexandre Teles (afterSt0rm)
parent
8d36663610
commit
42c88290b1
@@ -5,12 +5,11 @@ Routes:
|
||||
- HEAD /ping: Ping the API.
|
||||
"""
|
||||
|
||||
import os
|
||||
from sanic import Blueprint, HTTPResponse, Request, response
|
||||
from sanic_ext import openapi
|
||||
from api.utils.versioning import get_version
|
||||
|
||||
module_name = "ping"
|
||||
ping: Blueprint = Blueprint(module_name, version=get_version(module_name))
|
||||
ping: Blueprint = Blueprint(os.path.basename(__file__).strip(".py"))
|
||||
|
||||
|
||||
@ping.head("/ping")
|
||||
|
||||
Reference in New Issue
Block a user