more listing

This commit is contained in:
Dolan
2017-03-08 21:54:52 +00:00
parent 946a222d37
commit d2f777c4e5
5 changed files with 40 additions and 38 deletions

View File

@ -1,9 +1,10 @@
import {Packer} from "./packer";
import * as fs from "fs";
import * as express from "express";
import {Document} from "../../docx/document";
import {Properties} from "../../properties";
import {Numbering} from "../../numbering";
import * as fs from "fs";
import { Document } from "../../docx/document";
import { Numbering } from "../../numbering";
import { Properties } from "../../properties";
import { Packer } from "./packer";
export class ExpressPacker extends Packer {
private res: express.Response;
@ -17,8 +18,8 @@ export class ExpressPacker extends Packer {
});
}
pack(name: string): void {
public pack(name: string): void {
this.res.attachment(name + ".docx");
super.pack(this.res);
}
}
}