mirror of
https://github.com/wassname/DefinitelyTyped.git
synced 2026-10-24 11:50:59 +08:00
add test for serve-favicon
This commit is contained in:
1 parent
9e6f089f68
commit
546d3c9f31
1 file changed
+9
@@ -0,0 +1,9 @@
|
||||
/// <reference path="serve-favicon.d.ts" />
|
||||
|
||||
import express = require('express');
|
||||
import favicon = require('serve-favicon');
|
||||
var app = express();
|
||||
|
||||
app.use(favicon(__dirname + '/public/favicon.ico', {
|
||||
maxAge: 86400000
|
||||
}));
|
||||
Reference in new issue
Block a user