You've already forked pigallery2
mirror of
https://github.com/bpatrik/pigallery2.git
synced 2025-12-13 23:56:56 +02:00
middleware architecture created
This commit is contained in:
14
backend/routes/PublicRouter.ts
Normal file
14
backend/routes/PublicRouter.ts
Normal file
@@ -0,0 +1,14 @@
|
||||
///<reference path="../../typings/main.d.ts"/>
|
||||
|
||||
|
||||
import * as _express from 'express';
|
||||
import * as path from 'path';
|
||||
|
||||
export class PublicRouter{
|
||||
constructor(private app){
|
||||
this.app.use(_express.static(path.resolve(__dirname, './../../frontend')));
|
||||
this.app.use('/node_modules',_express.static(path.resolve(__dirname, './../../node_modules')));
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user