Skip to content

Commit 626e142

Browse files
committed
refactor: standardize controller and dictionary endpoint names to lowercase
1 parent 12d692d commit 626e142

File tree

7 files changed

+10
-10
lines changed

7 files changed

+10
-10
lines changed

api/src/contribution/controller.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ import {
1010
} from "./types";
1111

1212
@Service()
13-
@Controller("/Contributions")
13+
@Controller("/contributions")
1414
export class ContributionController {
1515
constructor(private readonly contributionRepository: ContributionRepository) {}
1616

api/src/contributor/controller.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ import { ProjectRepository } from "src/project/repository";
1212
import { ContributionRepository } from "src/contribution/repository";
1313

1414
@Service()
15-
@Controller("/Contributors")
15+
@Controller("/contributors")
1616
export class ContributorController {
1717
constructor(
1818
private readonly contributorRepository: ContributorRepository,

api/src/github/controller.ts

+2-2
Original file line numberDiff line numberDiff line change
@@ -5,11 +5,11 @@ import { Service } from "typedi";
55
import { GetRateLimitResponse } from "./types";
66

77
@Service()
8-
@Controller("/Github")
8+
@Controller("/github")
99
export class GithubController {
1010
constructor(private readonly githubService: GithubService) {}
1111

12-
@Get("/RateLimit")
12+
@Get("/rate-limit")
1313
public async getRateLimitInfo(): Promise<GetRateLimitResponse> {
1414
const { limit, used, ratio } = await this.githubService.getRateLimit();
1515

api/src/milestone/controller.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ import { Service } from "typedi";
55
import { GetMilestonesResponse } from "./types";
66

77
@Service()
8-
@Controller("/Milestones")
8+
@Controller("/milestones")
99
export class MilestoneController {
1010
constructor(private readonly githubService: GithubService) {}
1111

api/src/project/controller.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ import { ContributorRepository } from "src/contributor/repository";
1313
import { ContributionRepository } from "src/contribution/repository";
1414

1515
@Service()
16-
@Controller("/Projects")
16+
@Controller("/projects")
1717
export class ProjectController {
1818
constructor(
1919
private readonly projectRepository: ProjectRepository,

api/src/search/controller.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ import { SearchService } from "./service";
55
import { Service } from "typedi";
66

77
@Service()
8-
@Controller("/Search")
8+
@Controller("/search")
99
export class SearchController {
1010
constructor(private readonly searchService: SearchService) {}
1111

web/src/components/locale/dictionary.ts

+3-3
Original file line numberDiff line numberDiff line change
@@ -107,16 +107,16 @@ export const dictionary = {
107107
ar: "أرغب في البرمجة ، من أين أبدأ؟",
108108
},
109109
"faq-topic-2-answer-2": {
110-
en: `Go to [/Contribute](/Contribute) page, you will see a list of projects with available tasks for you to pick from whatever you like and start programming 🔥.`,
111-
ar: `انتقل إلى صفحة [المساهمة](/Contribute) ، سترى قائمة بالمشاريع بالمهام المتاحة لتختار منها ما تريد وتبدأ البرمجة 🔥.`,
110+
en: `Go to [/contribute](/contribute) page, you will see a list of projects with available tasks for you to pick from whatever you like and start programming 🔥.`,
111+
ar: `انتقل إلى صفحة [المساهمة](/contribute) ، سترى قائمة بالمشاريع بالمهام المتاحة لتختار منها ما تريد وتبدأ البرمجة 🔥.`,
112112
},
113113
"faq-topic-2-question-3": {
114114
en: "I like the idea, what are the different ways I can contribute to DzCode i/o ?",
115115
ar: "تعجبني الفكرة ، ما هي الطرق المختلفة التي يمكنني من خلالها المساهمة في DzCode i/o؟",
116116
},
117117
"faq-topic-2-answer-3": {
118118
en: `
119-
Besides the open tasks on [/Contribute](/Contribute) page, you can also contribute to DzCode i/o by:
119+
Besides the open tasks on [/contribute](/contribute) page, you can also contribute to DzCode i/o by:
120120
121121
- Adding your open-source projects to the dzcode.io website.
122122
`,

0 commit comments

Comments
 (0)