mirror of
https://github.com/seejohnrun/haste-server
synced 2025-07-30 15:00:05 -07:00
parent
7a08960414
commit
467f9a53b2
2 changed files with 16 additions and 3 deletions
|
@ -116,8 +116,10 @@ connect.createServer(
|
|||
// get documents
|
||||
app.get('/documents/:id', function(request, response, next) {
|
||||
var skipExpire = !!config.documents[request.params.id];
|
||||
var parsedUrl = url.parse(request.url, true);
|
||||
return documentHandler.handleGet(
|
||||
request.params.id,
|
||||
parsedUrl.query.callback,
|
||||
response,
|
||||
skipExpire
|
||||
);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue