From e3466e1398474e379acd42a944f3e2f2f06713fe Mon Sep 17 00:00:00 2001 From: Mahesh S Date: Fri, 13 May 2022 00:11:44 +0530 Subject: [PATCH] Modified docs --- README.md | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 861b0ab..b5dd18a 100644 --- a/README.md +++ b/README.md @@ -37,7 +37,9 @@ import { Application as Pwoli } from 'pwoli'; //if using ES6 modules or "type": const pkg = require('pwoli'); //if using CommonJS const Pwoli = pkg.Application; // Pwoli is loaded! -//Now set the viewPath for finding the views: + +// Now set the viewPath for finding the views: +// Please note: You don't need to set this if your application is just a REST API service Pwoli.setViewPath(path.join(\_\_dirname, 'views')); // The base path in which your view files are stored. Only applicable for SSR apps. //You're ready to go!