You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
// Route for testing the api at http://mirror:8080/api/test
119
127
this.expressRouter.route(["/test","/"]).// Test without apiKey
120
128
get((req,res)=>{
@@ -168,21 +176,35 @@ module.exports = {
168
176
self.answerGet({data: r},res);
169
177
});
170
178
171
-
this.expressRouter.route([
172
-
"/refresh{/:delayed}",
173
-
"/shutdown{/:delayed}",
174
-
"/reboot{/:delayed}",
175
-
"/restart{/:delayed}",
176
-
"/save",
177
-
"/minimize",
178
-
"/togglefullscreen",
179
-
"/devtools"
180
-
]).get((req,res)=>{
181
-
if(!this.apiKey&&this.secureEndpoints){returnres.status(403).json({success: false,message: "Forbidden: API Key Not Provided in Config! Use secureEndpoints to bypass this message"});}
if(!this.apiKey&&this.secureEndpoints){returnres.status(403).json({success: false,message: "Forbidden: API Key Not Provided in Config! Use secureEndpoints to bypass this message"});}
if(!this.apiKey&&this.secureEndpoints){returnres.status(403).json({success: false,message: "Forbidden: API Key Not Provided in Config! Use secureEndpoints to bypass this message"});}
if(!this.apiKey&&this.secureEndpoints){returnres.status(403).json({success: false,message: "Forbidden: API Key Not Provided in Config! Use secureEndpoints to bypass this message"});}
0 commit comments