Skip to content

Commit 5d86e9b

Browse files
committed
fix: moad delete api/*
1 parent 663671f commit 5d86e9b

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

bin/moad.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ var model = {
1515
}
1616

1717
if(argv.length < 1){
18-
return console.log('Usages: exd user');
18+
return console.log('Usages: moad user');
1919
}
2020

2121
model.entity = argv[1];

index.js

+2-1
Original file line numberDiff line numberDiff line change
@@ -123,8 +123,9 @@ g.prototype.destroy = function () {
123123
var m = this.model_path +'/'+ entity + ".js";
124124
var v = this.view_path +'/'+ Inflector.pluralize(entity) + "/";
125125
var r = this.route_path +'/'+ Inflector.pluralize(entity) + ".js";
126+
var a = this.route_path +'/api/'+ Inflector.pluralize(entity) + ".js";
126127

127-
[c,m,v,r].forEach(function(file){
128+
[c,m,v,r,a].forEach(function(file){
128129
mv('-f', file, cache_path + '/');
129130
});
130131
}

0 commit comments

Comments
 (0)