Skip to content

Make some routing functions to define and configure routes with various servers  #11

Description

@treeder

eg:

Define

routes = [
  {
    path: '/', 
    dataFunc: () => { return {hello: 'world'} },
    template: './views/index.js',
  },
]

Configure

import {configFastify} from 'rend/fastify'
configFastify(routes)

or:

import {configExpress} from 'rend/express'
configExpress(routes)

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions