Skip to content

Commit

Permalink
feat: Update contest team and manage routes (#1449)
Browse files Browse the repository at this point in the history
* Add graphql functions in hasura/contest.ts and Add routes in routes/contest.ts offerred to frontend

* add annotations for hasura/contest.ts

* change start/end data type (from string to Date)

* update routes/contests.ts, add response info (message and stack)

* delete inappropriate route and classify routes: 1.contest management 2.contest team

* delete useless routes in team.ts

* fix errors: delete all defined but never used imports

* fix contest.ts

* update contest.ts ( fix return expressions )

* delete 'AuthenticationError'

* add authenticate params in src/routes/team.ts as well as manage.ts

* update routes and gqls to make params in update operations optional

* fix errors in contest.ts

* fix error in dynamic params and improved several points

* fix errors in /manage.ts
  • Loading branch information
JamesCai-QwQ authored Oct 13, 2024
1 parent 8ea856d commit d92c95e
Show file tree
Hide file tree
Showing 4 changed files with 1,524 additions and 7 deletions.
8 changes: 6 additions & 2 deletions src/app.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,10 @@ import docsRouter from "./routes/docs";
import applicationRouter from "./routes/application";
import fileRouter from "./routes/files";
import codeRouter from "./routes/code";
// import roomRouter from "./routes/room";
// import contestRouter from "./routes/contest";
// import roomRouter from "./routes/room";
import teamRouter from "./routes/team";
import manageRouter from "./routes/manage";
import arenaRouter from "./routes/arena";
import competitionRouter from "./routes/competition";
import notificationRouter from "./routes/notification";
Expand Down Expand Up @@ -46,8 +48,10 @@ app.use("/docs", docsRouter);
app.use("/application", applicationRouter);
app.use("/files",fileRouter);
app.use("/code", codeRouter);
// app.use("/room", roomRouter);
// app.use("/contest", contestRouter);
// app.use("/room", roomRouter);
app.use("/team", teamRouter);
app.use("/manage", manageRouter);
app.use("/arena", arenaRouter);
app.use("/competition", competitionRouter);
app.use("/notification", notificationRouter);
Expand Down
Loading

0 comments on commit d92c95e

Please sign in to comment.