refactor: rename services to controllers
This commit is contained in:
parent
488f8737c0
commit
2dae0c8687
4
main.go
4
main.go
|
@ -63,11 +63,11 @@ func main() {
|
||||||
|
|
||||||
// Register the AccountController with the MVC framework and attach it to the "/api/account" path
|
// Register the AccountController with the MVC framework and attach it to the "/api/account" path
|
||||||
mvc.Configure(v1.Party("/account"), func(app *mvc.Application) {
|
mvc.Configure(v1.Party("/account"), func(app *mvc.Application) {
|
||||||
app.Handle(new(service.AccountService))
|
app.Handle(new(controller.AccountController))
|
||||||
})
|
})
|
||||||
|
|
||||||
mvc.Configure(v1.Party("/auth"), func(app *mvc.Application) {
|
mvc.Configure(v1.Party("/auth"), func(app *mvc.Application) {
|
||||||
app.Handle(new(service.AuthService))
|
app.Handle(new(controller.AuthController))
|
||||||
})
|
})
|
||||||
|
|
||||||
mvc.Configure(v1.Party("/files"), func(app *mvc.Application) {
|
mvc.Configure(v1.Party("/files"), func(app *mvc.Application) {
|
||||||
|
|
Loading…
Reference in New Issue