feat: modularize codebase and add multi-route support with live reload
This commit is contained in:
25
config.json
Normal file
25
config.json
Normal file
@@ -0,0 +1,25 @@
|
||||
{
|
||||
"host": "127.0.0.1",
|
||||
"port": 3000,
|
||||
"routes": [
|
||||
{
|
||||
"path": "/",
|
||||
"response_file": "response.json",
|
||||
"status_code": 200
|
||||
},
|
||||
{
|
||||
"path": "/api/status",
|
||||
"response_file": "status.json",
|
||||
"status_code": 500
|
||||
}
|
||||
],
|
||||
"masking": {
|
||||
"enabled": true,
|
||||
"headers": ["authorization", "x-api-key", "cookie"]
|
||||
},
|
||||
"tls": {
|
||||
"enabled": false,
|
||||
"cert_path": "cert.pem",
|
||||
"key_path": "key.pem"
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user