mirror of
https://github.com/misskey-dev/misskey.git
synced 2026-05-16 00:25:57 +02:00
fix(backend): api-docをScalarに変更 (#14152)
* fix(backend): api-docをScalarに変更 * Update Changelog
This commit is contained in:
@@ -25,7 +25,7 @@ export class OpenApiServerService {
|
||||
public createServer(fastify: FastifyInstance, _options: FastifyPluginOptions, done: (err?: Error) => void) {
|
||||
fastify.get('/api-doc', async (_request, reply) => {
|
||||
reply.header('Cache-Control', 'public, max-age=86400');
|
||||
return await reply.sendFile('/redoc.html', staticAssets);
|
||||
return await reply.sendFile('/api-doc.html', staticAssets);
|
||||
});
|
||||
fastify.get('/api.json', (_request, reply) => {
|
||||
reply.header('Cache-Control', 'public, max-age=600');
|
||||
|
||||
Reference in New Issue
Block a user