Compare commits
2 commits
e65b56028e
...
4036a6fc49
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
4036a6fc49 | ||
|
|
9f471905b5 |
2 changed files with 2 additions and 2 deletions
2
main.go
2
main.go
|
|
@ -70,7 +70,7 @@ func main() {
|
|||
// Start server
|
||||
port := os.Getenv("PORT")
|
||||
if port == "" {
|
||||
port = "8080"
|
||||
port = "5080"
|
||||
}
|
||||
r.Run(":" + port)
|
||||
}
|
||||
|
|
|
|||
|
|
@ -13,7 +13,7 @@ import (
|
|||
func RegisterAuthRoutes(r *gin.Engine, db *gorm.DB) {
|
||||
userService := services.NewUserService(db)
|
||||
|
||||
auth := r.Group("/auth")
|
||||
auth := r.Group("/api")
|
||||
{
|
||||
auth.POST("/signup", signup(userService))
|
||||
auth.POST("/login", login(userService))
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue