Skip to content

Commit fa9b55d

Browse files
committed
Merge pull request #58 from theflow/master
Expose manual refresh endpoint
2 parents d12b393 + 250fbcc commit fa9b55d

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

lib/api.js

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
var startTime = Date.now();
2+
var Q = require('q');
23

34
module.exports = {
45
'status': function () {
@@ -18,6 +19,13 @@ module.exports = {
1819
return this.versions.channels();
1920
},
2021

22+
'refresh': function () {
23+
return Q()
24+
.then(this.backend.onRelease)
25+
.thenResolve({done: true}
26+
);
27+
},
28+
2129
'version/:tag': function (req) {
2230
return this.versions.resolve({
2331
tag: req.params.tag,

0 commit comments

Comments
 (0)