mirror of
https://github.com/ragestudio/comty.git
synced 2025-06-10 02:54:15 +00:00
14 lines
351 B
JavaScript
Executable File
14 lines
351 B
JavaScript
Executable File
import path from "path"
|
|
import createRoutesFromDirectory from "@utils/createRoutesFromDirectory"
|
|
|
|
export default (router) => {
|
|
// create a file based router
|
|
const routesPath = path.resolve(__dirname, "routes")
|
|
|
|
router = createRoutesFromDirectory("routes", routesPath, router)
|
|
|
|
return {
|
|
path: "/widgets",
|
|
router,
|
|
}
|
|
} |