Skip to content

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

@treeder

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)

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions