adding welcome
This commit is contained in:
@@ -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
|
||||||
|
|||||||
@@ -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>
|
||||||
|
|||||||
Reference in New Issue
Block a user