mirror of
https://github.com/DeviceFarmer/stf.git
synced 2026-04-18 08:03:30 +02:00
Rename "roles" to "units". Put units in their own folders.
This commit is contained in:
12
lib/units/app/middleware/device-icons.js
Normal file
12
lib/units/app/middleware/device-icons.js
Normal file
@@ -0,0 +1,12 @@
|
||||
var serveStatic = require('serve-static')
|
||||
|
||||
var pathutil = require('../../../util/pathutil')
|
||||
|
||||
module.exports = function() {
|
||||
return serveStatic(
|
||||
pathutil.root('node_modules/stf-device-db/dist')
|
||||
, {
|
||||
maxAge: '30d'
|
||||
}
|
||||
)
|
||||
}
|
||||
Reference in New Issue
Block a user