-
Notifications
You must be signed in to change notification settings - Fork 61
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Ical link #116
Conversation
An ical link is now available on /calendar.ics. It contains all the ctfs with their description and dates. This endpoint is protected with a token by default, the password can be changed/removed by the admin.
gen_random_bytes is more suited for crypto purpose
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I did not test this yet. These are only questions
@@ -76,6 +86,7 @@ function createApp(postgraphileOptions: PostGraphileOptions) { | |||
}) | |||
); | |||
app.use(postgraphile(getDbUrl("user"), "ctfnote", postgraphileOptions)); | |||
app.use("/calendar.ics", icalRoute(pool)); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I see the pool is only used for the ical route.
Can we use this for postgraphile too ? It would be nice to share the same connection.
@@ -32,3 +32,5 @@ yarn-error.log* | |||
*.njsproj | |||
*.sln | |||
.vscode | |||
graphql.schema.json | |||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Since both graphql.schema.json
and schema.ts
are deleted, shouldn't we add both to the gitignore ?
An ical link is now available on /calendar.ics.
It contains all the ctfs with their description and dates.
This endpoint is protected with a token by default,
the password can be changed/removed by the admin.