added routes package and serve in server package
This commit is contained in:
1 parent
303b9344f8
commit
547949795f
8 files changed
+74
-77
No files matched your search
@@ -1,41 +0,0 @@
|
||||
package category
|
||||
|
||||
import "backend/model"
|
||||
|
||||
func GetAllCategories() ([]model.Category, error) {
|
||||
return []model.Category{
|
||||
{
|
||||
Title: "Electronics",
|
||||
Icon: "😀",
|
||||
Type: "expense",
|
||||
},
|
||||
{
|
||||
Title: "Clothing",
|
||||
Icon: "😁",
|
||||
Type: "expense",
|
||||
},
|
||||
{
|
||||
Title: "Books",
|
||||
Icon: "😂",
|
||||
Subcategories: []model.Subcategory{
|
||||
{
|
||||
Title: "Fiction",
|
||||
},
|
||||
{
|
||||
Title: "Non-Fiction",
|
||||
},
|
||||
},
|
||||
Type: "expense",
|
||||
},
|
||||
{
|
||||
Title: "Salary",
|
||||
Icon: "😀",
|
||||
Type: "income",
|
||||
},
|
||||
{
|
||||
Title: "asdf",
|
||||
Icon: "😀",
|
||||
Type: "income",
|
||||
},
|
||||
}, nil
|
||||
}
|
||||
Reference in new issue
Block a user