Skip to content

mongveasna/nodejs_mvc

Repository files navigation

api

The Node.js Rest API

module.exports = {
    async landing(ctx, next) {
        await ctx.render("index", {})
    }
};

Quick Start

inside [app root] directory open and modify route.js as below

module.exports = exports = {
    root: {
        handler: 'Home@landing', // say which controller will handler this
        path: '/', // path for client request
        method: 'GET' //
    }
};

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors