26 lines
959 B
TypeScript
Raw Normal View History

2019-10-07 23:31:51 +02:00
// Copyright (C) 2019 ModZero <modzero@modzero.xyz>
//
// This program is free software: you can redistribute it and/or modify
// it under the terms of the GNU Affero General Public License as
// published by the Free Software Foundation, either version 3 of the
// License, or (at your option) any later version.
//
// This program is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
// GNU Affero General Public License for more details.
//
// You should have received a copy of the GNU Affero General Public License
// along with this program. If not, see <http://www.gnu.org/licenses/>.
2019-09-26 15:52:58 +02:00
import express from "express";
2019-10-06 20:58:13 +02:00
import authRouter from "./auth";
import homeRouter from "./home";
2019-09-26 15:52:58 +02:00
const router = express.Router({ strict: true });
2019-09-26 15:52:58 +02:00
router.use("/auth$", authRouter);
router.use("/*", homeRouter);
2019-09-26 15:52:58 +02:00
export default router;