Renamed controllers package to routes.
This commit is contained in:
parent
60dedc0944
commit
869c507737
11 changed files with 12 additions and 12 deletions
4
main.go
4
main.go
|
|
@ -9,14 +9,14 @@ import (
|
||||||
"time"
|
"time"
|
||||||
|
|
||||||
"goweb/container"
|
"goweb/container"
|
||||||
"goweb/controllers"
|
"goweb/routes"
|
||||||
)
|
)
|
||||||
|
|
||||||
func main() {
|
func main() {
|
||||||
c := container.NewContainer()
|
c := container.NewContainer()
|
||||||
|
|
||||||
// Build the router
|
// Build the router
|
||||||
controllers.BuildRouter(c)
|
routes.BuildRouter(c)
|
||||||
|
|
||||||
// Start the server
|
// Start the server
|
||||||
go func() {
|
go func() {
|
||||||
|
|
|
||||||
|
|
@ -1,4 +1,4 @@
|
||||||
package controllers
|
package routes
|
||||||
|
|
||||||
import (
|
import (
|
||||||
"goweb/controller"
|
"goweb/controller"
|
||||||
|
|
@ -1,4 +1,4 @@
|
||||||
package controllers
|
package routes
|
||||||
|
|
||||||
import (
|
import (
|
||||||
"net/http"
|
"net/http"
|
||||||
|
|
@ -1,4 +1,4 @@
|
||||||
package controllers
|
package routes
|
||||||
|
|
||||||
import (
|
import (
|
||||||
"goweb/controller"
|
"goweb/controller"
|
||||||
|
|
@ -1,4 +1,4 @@
|
||||||
package controllers
|
package routes
|
||||||
|
|
||||||
import (
|
import (
|
||||||
"net/http"
|
"net/http"
|
||||||
|
|
@ -1,4 +1,4 @@
|
||||||
package controllers
|
package routes
|
||||||
|
|
||||||
import (
|
import (
|
||||||
"net/http"
|
"net/http"
|
||||||
|
|
@ -1,4 +1,4 @@
|
||||||
package controllers
|
package routes
|
||||||
|
|
||||||
import (
|
import (
|
||||||
"goweb/controller"
|
"goweb/controller"
|
||||||
|
|
@ -1,4 +1,4 @@
|
||||||
package controllers
|
package routes
|
||||||
|
|
||||||
import (
|
import (
|
||||||
"fmt"
|
"fmt"
|
||||||
|
|
@ -1,4 +1,4 @@
|
||||||
package controllers
|
package routes
|
||||||
|
|
||||||
import (
|
import (
|
||||||
"goweb/auth"
|
"goweb/auth"
|
||||||
|
|
@ -1,4 +1,4 @@
|
||||||
package controllers
|
package routes
|
||||||
|
|
||||||
import (
|
import (
|
||||||
"goweb/auth"
|
"goweb/auth"
|
||||||
|
|
@ -1,4 +1,4 @@
|
||||||
package controllers
|
package routes
|
||||||
|
|
||||||
import (
|
import (
|
||||||
"net/http"
|
"net/http"
|
||||||
Loading…
Add table
Add a link
Reference in a new issue