mirror of
https://github.com/gnmyt/myspeed.git
synced 2026-02-06 13:38:30 -06:00
Prepared the config.js route
This commit is contained in:
15
server/routes/config.js
Normal file
15
server/routes/config.js
Normal file
@@ -0,0 +1,15 @@
|
||||
const app = require('express').Router();
|
||||
|
||||
app.get("/", (req, res) => {
|
||||
// TODO: Show all config values except the password
|
||||
});
|
||||
|
||||
app.get("/:key", (req, res) => {
|
||||
// TODO: Shows a specific configuration value by key
|
||||
});
|
||||
|
||||
app.patch("/:key", (req, res) => {
|
||||
// TODO: Updates a specific configuration value by key
|
||||
});
|
||||
|
||||
module.exports = app;
|
||||
Reference in New Issue
Block a user