1
0
Fork 0
forked from goffee/cup

migration

This commit is contained in:
Zeni Kim 2024-09-15 19:01:52 -05:00
parent 17f3156efc
commit d49c5df8d8
4 changed files with 21 additions and 10 deletions

22
controllers/home.go Normal file
View file

@ -0,0 +1,22 @@
// Copyright 2023 Harran Ali <harran.m@gmail.com>. All rights reserved.
// Copyright (c) 2024 Zeni Kim <zenik@smarteching.com>
// Use of this source code is governed by MIT-style
// license that can be found in the LICENSE file.
package controllers
import (
"git.smarteching.com/goffee/core"
)
// Show home page
func WelcomeHome(c *core.Context) *core.Response {
message := "{\"message\": \"Welcome to Goffee\"}"
return c.Response.Json(message)
}
// Show dashboard
func WelcomeToDashboard(c *core.Context) *core.Response {
message := "{\"message\": \"Welcome to Dashboard\"}"
return c.Response.Json(message)
}