OpServ-Monitoring/opserv-backend

View on GitHub
app/server/static_hosting/__management.py

Summary

Maintainability
A
0 mins
Test Coverage
from flask import send_from_directory


# TODO Deprecated! - scheduled for removal in release 2
def init_static_hosting(app):
    @app.route('/')
    def send_index():
        return send_from_directory(directory='static_hosting/public/', filename='index.html')