added some commands
:)
This commit is contained in:
@@ -1,9 +1,18 @@
|
||||
function cd (req, res) {
|
||||
|
||||
function ls (req, res) {
|
||||
res.json({"response": "dit is totaal een reactie op een ls command :)", "command": "ls"});
|
||||
}
|
||||
|
||||
function whoami (req, res){
|
||||
res.json({"response": "guest", "command": "whoami"});
|
||||
}
|
||||
|
||||
function pwd (req, res, dir){
|
||||
res.json({"response": `/home/guest${dir}`})
|
||||
}
|
||||
|
||||
|
||||
|
||||
module.exports = {
|
||||
cd
|
||||
ls,
|
||||
whoami,
|
||||
pwd
|
||||
}
|
||||
Reference in New Issue
Block a user