Watcher cleanup. Restart server on config changes and if frontend is modified.

This commit is contained in:
Leo Vasanko
2023-10-24 00:57:50 +03:00
committed by Leo Vasanko
parent 5d3f419508
commit 4a13f642b2
3 changed files with 26 additions and 11 deletions

View File

@@ -2,11 +2,11 @@ import asyncio
import typing
import msgspec
from sanic import Blueprint, SanicException
from sanic import Blueprint
from cista import watching
from cista.fileio import FileServer
from cista.protocol import ControlBase, ErrorMsg, FileRange, StatusMsg
from cista.protocol import ControlBase, FileRange, StatusMsg
from cista.util.apphelpers import asend, websocket_wrapper
bp = Blueprint("api", url_prefix="/api")