Expose two-way sync.

- Convert plugin DevSettings flag to settings panel feature
- Remove server feature, always enable write API
This commit is contained in:
Lucien Greathouse
2020-03-18 10:39:40 -07:00
parent 1601e6d26e
commit 2a46df1110
8 changed files with 48 additions and 22 deletions

View File

@@ -43,9 +43,7 @@ impl Service for ApiService {
self.handle_api_open(request)
}
(&Method::POST, "/api/write") if cfg!(feature = "unstable_two_way_sync") => {
self.handle_api_write(request)
}
(&Method::POST, "/api/write") => self.handle_api_write(request),
(_method, path) => json(
ErrorResponse::not_found(format!("Route not found: {}", path)),