Secured mutations with an api-key. When in production mode it should return null if an API key is not provided or is incorrect.
All checks were successful
Main / build-and-push-docker-image (20.x) (push) Successful in 5m6s

This commit is contained in:
2025-12-10 16:42:21 -05:00
parent 678d1e7b5e
commit 30b4f65ec6
3 changed files with 156 additions and 78 deletions

View File

@@ -11,11 +11,25 @@ const typeDefs = /* GraphQL */ `
getTotalStats: TotalStats!
}
type Mutation {
init: String!
cronJob: TotalStats!
addGroup(groupID: BigInt, groupName: String, groupUsername: String): Groups!
incrementGroup(groupID: BigInt, linksDeleted: Int): Groups!
increment(link: Boolean, command: Boolean, trigger: Boolean): DailyStats!
init(mutationKey: String): String
cronJob(mutationKey: String): TotalStats
addGroup(
groupID: BigInt!
groupName: String!
groupUsername: String
mutationKey: String
): Groups
incrementGroup(
groupID: BigInt!
linksDeleted: Int!
mutationKey: String
): Groups
increment(
link: Boolean
command: Boolean
trigger: Boolean
mutationKey: String
): DailyStats
}
type Groups {