adding welcome

This commit is contained in:
2026-01-12 16:21:38 +00:00
parent 3e56b7b12f
commit da3870250b
2 changed files with 2 additions and 4 deletions

View File

@@ -47,6 +47,7 @@ func (notes *Notes) GetNote(path string) (*Note, error) {
return nil, ErrPathTraversal return nil, ErrPathTraversal
} }
fullPath += ".md"
data, err := os.ReadFile(fullPath) data, err := os.ReadFile(fullPath)
if err != nil { if err != nil {
return nil, err return nil, err

View File

@@ -1,9 +1,6 @@
<script setup> <script setup>
import RouterTable from "@/components/quick/RouterTable.vue"; import RouterTable from "@/components/quick/RouterTable.vue";
const note_links = [ const res = await axios.post("/api/notes/Welcome");
{ name: "ILSP", link: "/notes/islp" },
{ name: "Vue", link: "/notes/vue" },
];
</script> </script>
<template> <template>