View Source Routes.Watcher (routes v0.2.0)
A GenServer that watches for changes to router files and regenerates routes.
This module provides functionality to:
- Watch for file system changes in the current working directory
- Detect modifications to router.ex files
- Automatically regenerate routes when router files change
Summary
Functions
Child spec for supervision tree.
Handles file system events, specifically looking for router.ex file modifications.
Initializes the watcher by starting a FileSystem process and subscribing to events.
Starts the watcher process.
Functions
Child spec for supervision tree.
Handles file system events, specifically looking for router.ex file modifications.
Initializes the watcher by starting a FileSystem process and subscribing to events.
Starts the watcher process.
Options
Accepts GenServer options. The process will be registered under the module name.