Skip to content

Commit

Permalink
#73 init web and api controllers
Browse files Browse the repository at this point in the history
  • Loading branch information
Reindert Vetter committed Nov 15, 2020
1 parent cbd4f6c commit f23ab10
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 6 deletions.
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package controller
package controllers

import (
"github.com/lanvard/contract/inter"
Expand Down
2 changes: 1 addition & 1 deletion src/controller/ping.go → app/http/controllers/ping.go
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package controller
package controllers

import (
"github.com/lanvard/contract/inter"
Expand Down
4 changes: 2 additions & 2 deletions routes/api.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@ package routes

import (
. "github.com/lanvard/routing"
"lanvard/app/http/controllers"
"lanvard/app/http/middleware"
"lanvard/src/controller"
)

/*
Expand All @@ -20,5 +20,5 @@ import (
*/

var Api = Group(
Get("/ping", controller.Ping),
Get("/ping", controllers.Ping),
).Prefix("/api").Middleware(middleware.Api...)
4 changes: 2 additions & 2 deletions routes/web.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@ package routes

import (
. "github.com/lanvard/routing"
"lanvard/app/http/controllers"
"lanvard/app/http/middleware"
"lanvard/src/controller"
)

/*
Expand All @@ -17,5 +17,5 @@ import (
|
*/
var Web = Group(
Get("/", controller.Homepage),
Get("/", controllers.Homepage),
).Middleware(middleware.Web...)

0 comments on commit f23ab10

Please sign in to comment.