get_app_name.py 765 Bytes
# coding=utf-8
#author:        4N
#createtime:    2021/7/20
#email:         nheweijun@sina.com

import hashlib
from flask import current_app as app
import socket
import configure

from app.util.component.ApiTemplate import ApiTemplate
class Api(ApiTemplate):

    def process(self):
        return configure.application_name

    api_doc={
    "tags":["Index接口"],
    "description":"Index接口",
    "parameters":[
    ],
    "responses":{
        200:{
            "schema":{
                "properties":{
                    "content":{
                        "type": "string",
                        "description": "The name of the user"
                    }
                }
            }
            }
        }
    }