generated from nhcarrigan/template
feat: announce on Discourse support forum #17
@@ -60,7 +60,6 @@ export const announcementRoutes: FastifyPluginAsync = async(server) => {
|
||||
server.post<{ Body: { content: string; type: string } }>(
|
||||
"/announcement",
|
||||
|
||||
// eslint-disable-next-line max-statements -- This is a long function.
|
||||
async(request, reply) => {
|
||||
const token = request.headers.authorization;
|
||||
if (token === undefined || token !== process.env.ANNOUNCEMENT_TOKEN) {
|
||||
|
||||
Reference in New Issue
Block a user