Skip to content

Commit b85fe4b

Browse files
committed
add tail_slash option
1 parent 1b2ef77 commit b85fe4b

File tree

2 files changed

+5
-3
lines changed

2 files changed

+5
-3
lines changed

Diff for: config-example.json

+2-1
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
11
{
2-
"base_index_url": ""
2+
"base_index_url": "",
3+
"tail_slash": false
34
}

Diff for: index.html

+3-2
Original file line numberDiff line numberDiff line change
@@ -169,7 +169,7 @@
169169

170170
return $http({
171171
method: 'GET',
172-
url: self.config.base_index_url + (path || '')
172+
url: self.config.base_index_url + (path || '') + (self.config.tail_slash? '/': '')
173173
}).then(function (response) {
174174
var files = response.data || [];
175175

@@ -210,7 +210,8 @@
210210
self.loading.stop();
211211

212212
self.config = response.data || {
213-
base_index_url: ""
213+
base_index_url: "",
214+
tail_slash: false
214215
};
215216

216217
$scope.$on('$locationChangeSuccess', function () {

0 commit comments

Comments
 (0)