• This project
    • Loading...
  • Sign in

MotherProject / myYoutube

%ea%b7%b8%eb%a6%bc1
Go to a project
Toggle navigation Toggle navigation pinning
  • Projects
  • Groups
  • Snippets
  • Help
  • Project
  • Activity
  • Repository
  • Pipelines
  • Graphs
  • Issues 0
  • Merge Requests 0
  • Wiki
  • Snippets
  • Network
  • Create a new issue
  • Builds
  • Commits
  • Issue Boards
  • Files
  • Commits
  • Network
  • Compare
  • Branches
  • Tags
Switch branch/tag
  • myYoutube
  • middlewares.js
  • Flare-k's avatar
    Add mixin and Modify Join&Login · c50f69df
    c50f69df
    Flare-k authored 2020-05-22 17:55:21 +0900
middlewares.js 249 Bytes
Raw Blame History Permalink
1 2 3 4 5 6 7 8 9 10 11
import routes from "./routes";

export const localsMiddleware = (req, res, next) => {
    res.locals.siteName = 'my Youtube';
    res.locals.routes = routes;
    res.locals.user = {
        isAuthenticated: true,
        id: 1,
    };
    next();
};