diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..358a0fd --- /dev/null +++ b/.gitignore @@ -0,0 +1,124 @@ +############################### +# Visual Studio / .NET Ignore # +############################### + +# User-specific files +.vs/ +.vscode/ +*.user +*.suo +*.userosscache +*.sln.docstates + +# Build results +[Bb]in/ +[Oo]bj/ +**/[Bb]in/ +**/[Oo]bj/ + +# Rider / JetBrains +.idea/ + +# Build output from publish or temp folders +[Dd]ebug/ +[Rr]elease/ +x64/ +x86/ +[Aa][Rr][Mm]/ +[Aa][Rr][Mm]64/ +[Bb]uild/ +[Ll]og/ +[Ll]ogs/ +*.log + +# NuGet packages +*.nupkg +*.snupkg +*.nuspec +*.dll +*.exe +packages/ +**/packages/ + +# Compiled sources +*.dll +*.exe +*.pdb +*.cache +*.mdb + +# Publish files +**/Properties/PublishProfiles/ +**/obj/Release/ +**/obj/Debug/ +**/obj/**/PubTmp/ +**/obj/**/Out/ + +# Generated code +*.generated.* +*.g.* +*.AssemblyInfo.cs + +# Others +[Tt]est[Rr]esult*/ +[Tt]est[Rr]esults/ +*.dbmdl +*.bak +*.sql +*.sqlite + +# Temporary and local settings +*.tmp +*.temp +*.swp +*.swo +*.userprefs +*.local +*.env +.env +.env.* + +# OS generated files +.DS_Store +Thumbs.db +ehthumbs.db +desktop.ini + +# Dotnet Tools +.dotnet-tools/ + +# Secrets and config files +appsettings.*.json +secrets.json +*.key +*.pem +*.pfx +*.cer +*.cache + +######################### +# Project-specific rules # +######################### + +# Database scripts (optional - uncomment if not needed in git) +# /database/ + +# Documents (optional) +# /documents/ + +# Ignore build artifacts for microservices +**/microservices/**/[Bb]in/ +**/microservices/**/[Oo]bj/ +**/gateway/**/[Bb]in/ +**/gateway/**/[Oo]bj/ + +######################### +# End of .gitignore file # +######################### +*.assets.cache +/microservices/admin/obj/Debug/net9.0/API.Admin.assets.cache +/microservices/institute/obj/Debug/net9.0/API.Institute.assets.cache +/microservices/S3Bucket/obj/Debug/net9.0/API.Bucket.assets.cache +/microservices/student/obj/Debug/net9.0/API.Student.assets.cache +/microservices/teacher/obj/Debug/net9.0/API.Teacher.assets.cache +/microservices/user/obj/Debug/net9.0/API.User.assets.cache diff --git a/database/drop_all_objects.sql b/database/drop_all_objects.sql deleted file mode 100644 index 19e805b..0000000 --- a/database/drop_all_objects.sql +++ /dev/null @@ -1,3 +0,0 @@ -USE odiproj1_oa - -exec _drop_all_tables \ No newline at end of file diff --git a/database/useful_queries/Search all objects by string.sql b/database/useful_queries/Search all objects by string.sql deleted file mode 100644 index 3e35a96..0000000 --- a/database/useful_queries/Search all objects by string.sql +++ /dev/null @@ -1,13 +0,0 @@ -use njls -go - -select * from -( - select - name as name1, - OBJECT_DEFINITION (object_id) as def,* - from sys.all_objects - --where type='P' -) r - where lower(r.def) like '%password%' -- '%bulkadd%' - order by name1 \ No newline at end of file diff --git a/gateway/API.Gateway.csproj b/gateway/API.Gateway.csproj index b483fa7..d7968fa 100644 --- a/gateway/API.Gateway.csproj +++ b/gateway/API.Gateway.csproj @@ -13,4 +13,10 @@ + + + Always + + + diff --git a/gateway/Startup.cs b/gateway/Startup.cs index fa2cc15..5453c50 100644 --- a/gateway/Startup.cs +++ b/gateway/Startup.cs @@ -6,6 +6,7 @@ using Microsoft.Extensions.Hosting; using Microsoft.IdentityModel.Tokens; using Ocelot.DependencyInjection; using Ocelot.Middleware; +using System.IO; namespace OnlineAssessment.Gateway { @@ -43,36 +44,41 @@ namespace OnlineAssessment.Gateway public string GetIndexPage() { - string indexPage = @" -
- + using (var reader = new StreamReader("index.html")) + { + string indexFileContent = reader.ReadToEnd(); + return indexFileContent; + } + //string indexPage = @" + //
+ // -

API Gateway (Online Assessment)

-
- "; - return indexPage; + // + //
+ // "; + //return indexPage; } } } diff --git a/gateway/index.html b/gateway/index.html index 7df9d8c..e1c1cd2 100644 --- a/gateway/index.html +++ b/gateway/index.html @@ -5,27 +5,35 @@ Odiware Technologies - API Gateway -
-