mirror of
https://git.mirrors.martin98.com/https://github.com/sub-store-org/Sub-Store.git
synced 2026-04-04 01:53:14 +08:00
夜间模式
This commit is contained in:
@@ -76,6 +76,13 @@ function service() {
|
||||
|
||||
// rules API
|
||||
$app.get("/download/rule/:name", downloadRule);
|
||||
$app.route("/api/rules")
|
||||
.post(createRule)
|
||||
.get(getAllRules);
|
||||
$app.route("/api/rule/:name")
|
||||
.patch(updateRule)
|
||||
.delete(deleteRule)
|
||||
.get(getRule);
|
||||
|
||||
// Storage management
|
||||
$app.route("/api/storage")
|
||||
@@ -435,6 +442,22 @@ function service() {
|
||||
}
|
||||
}
|
||||
|
||||
function createRule(req, res) {
|
||||
|
||||
}
|
||||
function deleteRule(req, res) {
|
||||
|
||||
}
|
||||
function updateRule(req, res) {
|
||||
|
||||
}
|
||||
function getAllRules(req, res) {
|
||||
|
||||
}
|
||||
function getRule(req, res) {
|
||||
|
||||
}
|
||||
|
||||
// settings API
|
||||
function getSettings(req, res) {
|
||||
const settings = $.read(SETTINGS_KEY);
|
||||
|
||||
Reference in New Issue
Block a user