Edit Markdown Folder Directory
All checks were successful
Neutral/pipeline/head This commit looks good
All checks were successful
Neutral/pipeline/head This commit looks good
This commit is contained in:
parent
74c5342633
commit
88ce85c422
10
routes/cv.js
10
routes/cv.js
@ -41,7 +41,7 @@ router.post("/", function(req, res, next) {
|
|||||||
|
|
||||||
if(bod.request == "get") {
|
if(bod.request == "get") {
|
||||||
|
|
||||||
const markdownFolder = "/home/gitlab-ci/cv/dashboard-raphael/markdown"
|
const markdownFolder = "/home/gitlab-ci/cv/dashboard-raphael/markdown/"
|
||||||
|
|
||||||
if(bod.value == "WHOAMI") {
|
if(bod.value == "WHOAMI") {
|
||||||
|
|
||||||
@ -93,7 +93,7 @@ router.post("/", function(req, res, next) {
|
|||||||
var fileData = null;
|
var fileData = null;
|
||||||
|
|
||||||
if(fs.existsSync(markdownFolder)) {
|
if(fs.existsSync(markdownFolder)) {
|
||||||
fileData = fs.readFileSync("/home/gitlab-ci/cv/markdown/certif.md")
|
fileData = fs.readFileSync(markdownFolder + "certif.md")
|
||||||
|
|
||||||
} else {
|
} else {
|
||||||
fileData = fs.readFileSync("../MD_TEST/certif.md")
|
fileData = fs.readFileSync("../MD_TEST/certif.md")
|
||||||
@ -108,7 +108,7 @@ router.post("/", function(req, res, next) {
|
|||||||
var fileData = null;
|
var fileData = null;
|
||||||
|
|
||||||
if(fs.existsSync(markdownFolder)) {
|
if(fs.existsSync(markdownFolder)) {
|
||||||
fileData = fs.readFileSync("/home/gitlab-ci/cv/markdown/passions.md")
|
fileData = fs.readFileSync(markdownFolder + "passions.md")
|
||||||
|
|
||||||
} else {
|
} else {
|
||||||
fileData = fs.readFileSync("../MD_TEST/passions.md")
|
fileData = fs.readFileSync("../MD_TEST/passions.md")
|
||||||
@ -123,7 +123,7 @@ router.post("/", function(req, res, next) {
|
|||||||
var fileData = null;
|
var fileData = null;
|
||||||
|
|
||||||
if(fs.existsSync(markdownFolder)) {
|
if(fs.existsSync(markdownFolder)) {
|
||||||
fileData = fs.readFileSync("/home/gitlab-ci/cv/markdown/find.md")
|
fileData = fs.readFileSync(markdownFolder + "find.md")
|
||||||
|
|
||||||
} else {
|
} else {
|
||||||
fileData = fs.readFileSync("../MD_TEST/find.md")
|
fileData = fs.readFileSync("../MD_TEST/find.md")
|
||||||
@ -142,7 +142,7 @@ router.post("/", function(req, res, next) {
|
|||||||
|
|
||||||
} else if(bod.request == "set") {
|
} else if(bod.request == "set") {
|
||||||
|
|
||||||
const markdownFolder = "/home/gitlab-ci/cv/dashboard-raphael/markdown"
|
const markdownFolder = "/home/gitlab-ci/cv/dashboard-raphael/markdown/"
|
||||||
|
|
||||||
if(bod.type == "WHOAMI") {
|
if(bod.type == "WHOAMI") {
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user