Skip to content

Commit 22fa1b3

Browse files
committed
chore(server): organize/shuffle server related files/folders
1 parent 021f7c8 commit 22fa1b3

File tree

6 files changed

+5
-6
lines changed

6 files changed

+5
-6
lines changed

Server/Controllers/TestController.cs renamed to Server/Api/TestController.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
using Microsoft.AspNetCore.SignalR;
1010
using System.IO;
1111

12-
namespace Angular2Spa.Server.Controllers
12+
namespace Angular2Spa.Controllers
1313
{
1414
[Route("api/[controller]")]
1515
public class TestController : Controller

Server/Api/UserController.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
1-
using Angular2Spa.DbModels;
1+
using Angular2Spa.Models;
22
using Microsoft.AspNetCore.Mvc;
33
using Microsoft.EntityFrameworkCore;
44
using System;
55
using System.Linq;
66
using System.Threading.Tasks;
77

8-
namespace Angular2Spa.Server.Api
8+
namespace Angular2Spa.Controllers
99
{
1010
[Route("api/user/[action]")]
1111
public class UserController : Controller
File renamed without changes.

DbModels/Users.cs renamed to Server/Models/Users.cs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
using System;
22
using System.ComponentModel.DataAnnotations;
33

4-
namespace Angular2Spa.DbModels
54
{
65
public class Users
76
{

SpaDbContext.cs renamed to Server/SpaDbContext.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
using Angular2Spa.DbModels;
1+
using Angular2Spa.Models;
22
using Microsoft.EntityFrameworkCore;
33

44
namespace Angular2Spa

Startup.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
using Microsoft.Extensions.DependencyInjection;
77
using Microsoft.Extensions.Logging;
88
using Microsoft.EntityFrameworkCore;
9-
using Angular2Spa.DbModels;
9+
using Angular2Spa.Models;
1010

1111
namespace Angular2Spa
1212
{

0 commit comments

Comments
 (0)